aws-samples / aws-cdk-examples

Example projects using the AWS CDK
Apache License 2.0
4.95k stars 2.1k forks source link

CREATE_FAILED | AWS::S3::BucketPolicy #1022

Open dk4tz opened 3 months ago

dk4tz commented 3 months ago

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

kaiz-io commented 3 months ago

Which example?

dk4tz commented 3 months ago

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

hellofadude commented 2 months ago

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

hellofadude commented 2 months ago

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

I'll create a separate issue