Sitemap
Aviral Vishnoi

Aviral Vishnoi

Customizing CDK Bootstrap resources

1 min readJan 22, 2026

As a follow-up for my previous article, I will explain here how we can customize the resources which are created as part of CDKToolkit stack.

Get Aviral Vishnoi’s stories in your inbox

Join Medium for free to get updates from this writer.

There are two ways to achieve this:
1. Use command line parameters with the cdk bootstrap command to customize few resources.
2. Modify the cloudformation template which creates the CDKToolkit stack.

cdk bootstrap — template <custom-template-file> — toolkit-stack-name <stack-name>

Command line arguments to customize
1. --bootstrap-bucket-name overrides name of the artifact bucket
2. --bootstrap-kms-key-id overrides the AWS KMS key to encrypt the artifact bucket
3. --cloudformation-execution-policies set specific IAM policies that the CloudFormation execution role should assume during the deployment process.
4. --bootstrap-customer-key Create a Customer Master Key (CMK) for the bootstrap bucket (you will be charged but can customize permissions, modern bootstrapping only).

This option is not compatible with --bootstrap-kms-key-id.

--

--