Skip to content

(bootstrap): Utilize Account Regional namespace suffix for default StagingBucket #1437

@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).

https://github.com/aws/aws-cdk/blob/6903378baadb4fc0b14ce75b7ceb90ec14adf208/packages/%40aws-cdk/app-staging-synthesizer-alpha/lib/default-staging-stack.ts#L380

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions