Skip to content

bootstrap: Utilize Account Regional namespace suffix for default StagingBucket #37245

@dehli

Description

@dehli

Describe the feature

As described here, S3 now has an account regional namespace suffix. For the purposes of CDK, I think it just requires appending -an to the default StagingBucket's name (and handling the breaking change - which is more work).

const stagingBucketName = this.stagingBucketName ?? `cdk-${this.appId}-staging-${this.account}-${this.region}`;

Use Case

I want to protect against bucket squatting for CDK buckets.

Proposed Solution

No response

Other Information

For my own personal accounts, I can customize the staging bucket name so no change is needed, but making this the default for future accounts could be a good idea.

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS CDK Library version (aws-cdk-lib)

2.243.0

AWS CDK CLI version

2.243.0

Environment details (OS name and version, etc.)

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p2package/toolsRelated to AWS CDK Tools or CLI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions