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

feat: Move to GuCDK's policy to get the artifact #612

Merged
merged 2 commits into from
Jun 22, 2021

Conversation

akash1810
Copy link
Member

@akash1810 akash1810 commented Jun 21, 2021

Builds on #598.

What does this change?

Replace the YAML resource that allows the instance to download the artifact from S3 with a GuCDK construct.

This has a secondary benefit where we follow the principle of least privilege as GuCDK tightly scopes the s3:GetObject permission.

How to test

Perform a full deploy of this branch. If you can, then we can still get the correct files from S3 🎉 .

How can we measure success?

We move closer to a CDK only template and have tighter access policies.

Have we considered potential risks?

The AMIgo application code might require access to the bucket on a path different from bucket/stack/stage/app/*. I can't see anything obvious to this effect though, so it should be ok.

Replace the YAML resource that allows the instance to download the artifact from S3 with a GuCDK construct.

This has a secondary benefit where we follow the principle of least privilege as GuCDK tightly scopes the `s3:GetObject` permission.
@akash1810 akash1810 requested a review from a team June 21, 2021 14:07
@akash1810 akash1810 merged commit 0681d3f into main Jun 22, 2021
@akash1810 akash1810 deleted the aa-replace-dist-bucket-policy branch June 22, 2021 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants