-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: ensure EnvManagerRole template has permissions to upload artifacts #3567
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put on the label so that you can address feedback!
pad := strings.Repeat(" ", numSpaces) | ||
|
||
// Create the additional permissions needed with the appropriate indentation. | ||
permissions := fmt.Sprintf(`- Sid: PatchPutObjectsToArtifactBucket |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noice! Naming it Patch...
ensures that we can upgrade environment using the env template without fear for "change set has no changes" error.
if len(tpl.Resources.ManagerRole.Properties.Policies) == 0 { | ||
return errors.New("unable to find policies for the EnvironmentManagerRole") | ||
} | ||
// lines and columns are 1-indexed, so we have to substract one from each. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
substract
i finally found one 😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇
Related #3556
Tested
env upgrade
from the following versions:copilot v1.0
copilot v1.13
copilot v1.17
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.