aws-cdk-examples icon indicating copy to clipboard operation
aws-cdk-examples copied to clipboard

CREATE_FAILED | AWS::S3::BucketPolicy

Open dk4tz opened this issue 1 year ago • 4 comments
trafficstars

Describe the bug

Stack will not build because CDK cannot attach bucket policy to the bucket.

| SiteBucket/Policy The bucket policy already exists on bucket XYZ

Expected Behavior

Stack builds correctly.

Current Behavior

Stack build fails

Reproduction Steps

cdk deploy

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.134.0

Framework Version

No response

Node.js Version

v20.11.1

OS

macOS

Language

Typescript

Language Version

No response

dk4tz avatar Apr 01 '24 20:04 dk4tz

Which example?

kaiz-io avatar Apr 03 '24 13:04 kaiz-io

static site generator. i've reproduced the bug now in both TypeScript and Python

dk4tz avatar Apr 03 '24 13:04 dk4tz

I am able to recreate this bug/issue? Is there any update on a fix?

hellofadude avatar Apr 28 '24 19:04 hellofadude

Looks like my issue is slightly different. CREATE_FAILED - Access Denied (Service: s3, status code: 403)

I'll create a separate issue

hellofadude avatar Apr 28 '24 21:04 hellofadude