Skip to content
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

Merged
merged 3 commits into from
May 12, 2022

Conversation

efekarakus
Copy link
Contributor

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.

@efekarakus efekarakus requested a review from a team as a code owner May 12, 2022 22:08
@efekarakus efekarakus requested review from dannyrandall and removed request for a team May 12, 2022 22:08
@Lou1415926 Lou1415926 added the do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. label May 12, 2022
Copy link
Contributor

@Lou1415926 Lou1415926 left a 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
Copy link
Contributor

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.

@efekarakus efekarakus removed the do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. label May 12, 2022
@mergify mergify bot merged commit 61a05a6 into aws:mainline May 12, 2022
@efekarakus efekarakus deleted the fix/issue-3556-manager-role branch May 12, 2022 22:41
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.
Copy link
Contributor

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 😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇😇

mergify bot pushed a commit that referenced this pull request Aug 29, 2022
Basically bringing back logic in #3562  and #3567 .

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants