aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.36k stars 3.77k forks source link

(aws-cdk-lib/aws-s3): Too many BucketPolicy resources defined when defining/attaching BucketPolicy constructs to Buckets #30148

Open climbertjh2 opened 1 month ago

climbertjh2 commented 1 month ago

Describe the bug

Situation:

Result:

Expected Behavior

Expected Behavior is either:

Current Behavior

Result:

Reproduction Steps

See above.

Possible Solution

Suggested Behavior:

Or a recommendation to use .addToResourcePolicy() rather than creating explicit BucketPolicy constructs.

Additional Information/Context

Sample code can be provided on request.

CDK CLI Version

2.141.0

Framework Version

aws-cdk-lib@2.138.0

Node.js Version

v20.12.2

OS

MacOS

Language

TypeScript

Language Version

typescript@5.3.3

Other information

No response

khushail commented 4 days ago

Hi @climbertjh2 , Thanks for reaching out. Could you please provide the minimum sample code for repro of this issue ?

github-actions[bot] commented 2 days ago

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.