S3 error: Access Denied on cdk deploy
See original GitHub issueAround 10% of cdk deploy
commands fail with S3 error: Access Denied
.
Reproduction Steps
cdk "deploy" "-e" "true" "--require-approval" "never" "--no-ci" "--output" "1432235223.cdk.out" "--no-staging" "MyStack"
Error Log
978 MyStack: creating CloudFormation changeset...
979 ❌ MyStack failed: ValidationError: S3 error: Access Denied
980 For more information check http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
981 S3 error: Access Denied
982 For more information check http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
Environment
- CLI Version :1.25.0
- Framework Version:1.25.0
- OS :Linux Ubuntu 18.04
- Language :Typescript
Other
The stack itself is irrelevant. This can even happen with an almost empty stack.
This is 🐛 Bug Report
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:19 (7 by maintainers)
Top Results From Across the Web
CDK Stck Failed to publish one or more assets Access Denied
Hi All,. In My BuildProject/BuildSpec (in my STG Account), I run this command : cdk deploy --require-approval never. it gives me this error...
Read more >S3 Access Denied even when running the CDK with ...
@Marcin apart from the permission set during the CDK deploy i.e. AdminAccess I have not set any seperate role for Pipeline.
Read more >AWS Cloud Formation S3 error: Access Denied - Medium
If the object exists in the bucket, then the Access Denied error isn't masking a 404 Not Found error. Verify other configuration requirements...
Read more >Resolve Access Denied errors from a CloudFront distribution ...
To troubleshoot Access Denied errors, determine if your distribution's origin domain name is an S3 website endpoint or an S3 REST API endpoint....
Read more >awslabs/aws-cdk - Gitter
0/3 | 10:13:00 AM | CREATE_IN_PROGRESS | AWS::S3::Bucket | StagingBucket ... I can't get aroudn this SetBucketEncryption Access Denied Error.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It seems to me that after naming something in the stack to get different stack generated (different hash), it started to work. Again when returning to the same stack (identical hash), I’m getting this error 100% of the rounds. It has to be that something with S3 file publishing has failed.
I intend on releasing a version of CDK with the fix in it today, so y’all can collecting evidence on whether that was it or not… 🤞🏻