Skip to content

fix: ensure env manager role has permission to upload#3956

Merged
mergify[bot] merged 7 commits intoaws:mainlinefrom
Lou1415926:fix/env-deploy/manual-update-of-env-manager-permission
Aug 29, 2022
Merged

fix: ensure env manager role has permission to upload#3956
mergify[bot] merged 7 commits intoaws:mainlinefrom
Lou1415926:fix/env-deploy/manual-update-of-env-manager-permission

Conversation

@Lou1415926
Copy link
Copy Markdown
Contributor

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.

@Lou1415926 Lou1415926 requested a review from a team as a code owner August 26, 2022 21:06
@Lou1415926 Lou1415926 requested review from dannyrandall and removed request for a team August 26, 2022 21:06
Copy link
Copy Markdown
Contributor

@dannyrandall dannyrandall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great!

Comment thread internal/pkg/cli/deploy/patch/env.go Outdated
Comment thread internal/pkg/cli/deploy/patch/env.go Outdated
Comment thread internal/pkg/cli/deploy/patch/env.go Outdated
Comment thread internal/pkg/cli/deploy/patch/env.go Outdated
Copy link
Copy Markdown
Contributor

@huanjani huanjani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mergify mergify Bot merged commit 95da7bf into aws:mainline Aug 29, 2022
mergify Bot pushed a commit that referenced this pull request Aug 30, 2022
…k with bootstrap stack (#3966)

Previously, we have two fixes:
1. #3956 which patches the S3 permissions to the environment manager role if it's needed.
2. #3949 which preserves service discovery endpoint namespace from a previously deployed env stack.

Fix 1 performs an environment template version check to infer whether the necessary permissions are present. This version check fails to take into account the `"bootstrap"` version, which is present when the environment is only bootstrapped (by running `env init` and not having run `env deploy`)

Fix 2 grabs the old parameter from a deployed environment stack. It fails to take into consideration that, while an env stack that's on `"bootstrap"` version is not considered a "deployed environment" in Copilot, it is a deployed stack in CFN.

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.

4 participants