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

CDK Deploy: s3:PutBucketPolicy Access Denied when deploying static site #25231

Closed
h5aaimtron opened this issue Apr 21, 2023 · 3 comments
Closed
Labels
@aws-cdk/aws-s3 Related to Amazon S3 @aws-cdk/triggers Related to the triggers package bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@h5aaimtron
Copy link

Describe the bug

I had a deployment that was working and then it became corrupted due to a redeployment mistake. Now when attempting to deploy the cdk post-clean up, I get an error API: s3:PutBucketPolicy Access Denied which triggers the rest of the stack to fail.

Expected Behavior

The app to deploy like it did the first time.

Current Behavior

API: s3:PutBucketPolicy Access Denied

Reproduction Steps

Not entirely sure. Deploy an app/stack that creates a static site. Change a few names on the Ids and deploy again causing the stack to mess up. Destroy/delete the stack and try to redeploy?

Possible Solution

I wish I knew. The role the deploy command utilizes as AdminAccess attached so it should just work.

Additional Information/Context

No response

CDK CLI Version

2.69

Framework Version

No response

Node.js Version

16

OS

Windows 10

Language

Typescript

Language Version

No response

Other information

No response

@h5aaimtron h5aaimtron added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Apr 21, 2023
@github-actions github-actions bot added the @aws-cdk/aws-s3 Related to Amazon S3 label Apr 21, 2023
@h5aaimtron h5aaimtron changed the title CDK Deploy: Access Denied when adding policy to S3 bucket CDK Deploy: s3:PutBucketPolicy Access Denied when deploying static site Apr 21, 2023
@github-actions github-actions bot added the @aws-cdk/triggers Related to the triggers package label Apr 21, 2023
@h5aaimtron
Copy link
Author

Forgot they were applying the Block all by default on S3 buckets in April.

@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-s3 Related to Amazon S3 @aws-cdk/triggers Related to the triggers package bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants