aws-samples/aws-cdk-examples

CREATE_FAILED | AWS::S3::BucketPolicy

dk4tz opened this issue · 4 comments

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

Which example?

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

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

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

I'll create a separate issue