aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

[CLI] Automate "cdk bootstrap"

Open SachinShekhar opened this issue 6 years ago • 3 comments

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

SachinShekhar avatar Jul 14 '20 04:07 SachinShekhar

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

aritranagnordcloud avatar Oct 21 '21 12:10 aritranagnordcloud

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?

rob3c avatar Oct 21 '21 20:10 rob3c

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.

github-actions[bot] avatar Oct 22 '22 00:10 github-actions[bot]