question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

S3 error: Access Denied on cdk deploy

See original GitHub issue

Around 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:19 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
msimpericommented, May 28, 2021

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.

3reactions
RomainMullercommented, Apr 23, 2020

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… 🤞🏻

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found