CDK Deploy: s3:PutBucketPolicy Access Denied when deploying static site #25231
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.
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
The text was updated successfully, but these errors were encountered: