[CLI] Automate "cdk bootstrap"
Remove requirement to run cdk bootstrap before first deployment to an AWS environment.
Use Case
Before expanding my CDK app to new regions and accounts, I need to run cdk bootstrap which is repeatative & annoying. Lots of times, my CI/CD pipelines for new account fail just because I had forgotten to run cdk bootstrap before.
Proposed Solution
CLI can detect whether an AWS environment has been bootstrapped (that's why it's able to throw error). Instead of throwing error, it can run cdk bootstrap and retry deployment.
This is a :rocket: Feature Request
This is a true blocker for automating CDK Construct creation. We need a way ahead to remove the manual step of cdk bootstrap for 1000 accounts
The CDK docs mention you can render the bootstrap template to a file:
cdk bootstrap --show-template > cdk-bootstrap-template.yaml
And then for 1000 accounts, you can use StackSets to deploy it to an account list or OU. Have you tried that?
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.