You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When defining acceleratorMetadata in the global-config.yaml file, the "readOnlyAccessRoleArns" parameter is optional. However, if it's added and then later removed, the codepipeline will fail.
To Reproduce
In global-config.yaml, add the following snippet:
The codepipeline will fail at the Build stage, with the following error:
/acceleratorMetadata/readOnlyAccessRoleArns => must be array
Expected behavior
It's expected that if the acceleratorMetadata resource in the global-config.yaml file has readOnlyAccessRoleArns defined, the entire readOnlyAccessRoleArns parameter can be removed successfully without resulting in an error.
Please complete the following information about the solution:
Version: v1.9.2
Region: ca-central-1
Screenshot attached.
The text was updated successfully, but these errors were encountered:
Thank you @richardkeit ! I believe this may be a part of the issue. If the field of readOnlyAccessRoleArns is mandatory, why is it possible to define an acceleratorMetadata resource without it? Perhaps readOnlyAccessRoleArns should be changed to optional? For example, initially my configuration was as follows, which deployed successfully:
Describe the bug
When defining acceleratorMetadata in the global-config.yaml file, the "readOnlyAccessRoleArns" parameter is optional. However, if it's added and then later removed, the codepipeline will fail.
To Reproduce
In global-config.yaml, add the following snippet:
acceleratorMetadata:
enable: true
account: LogArchive
readOnlyAccessRoleArns:
- arn:aws:iam::[account-id]:role/[role]
Run the codepipeline. Then, remove the readOnlyAccessRoleArns parameter and the role that it refers to:
acceleratorMetadata:
enable: true
account: LogArchive
The codepipeline will fail at the Build stage, with the following error:
Expected behavior
It's expected that if the acceleratorMetadata resource in the global-config.yaml file has readOnlyAccessRoleArns defined, the entire readOnlyAccessRoleArns parameter can be removed successfully without resulting in an error.
Please complete the following information about the solution:
Version: v1.9.2
Region: ca-central-1
Screenshot attached.
The text was updated successfully, but these errors were encountered: