How to Run Cdk Bootstrap

To bootstrap an AWS CDK environment, you simply need to do the following:

npx aws-cdk bootstrap

…for each environment that you would like the CD to operate within.

This will deploy all the required prerequisites to the AWS account, such as the:

  • An Amazon S3 bucket for storing files and IAM roles that grant permissions needed to perform deployments.
  • The required resources are defined in an AWS CloudFormation stack, called the bootstrap stack, which is usually named CDKToolkit. Like any AWS CloudFormation stack, it appears in the AWS CloudFormation console once it has been deployed.