← Back to list

Customizing CDK Bootstrap resources

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…

Aviral Vishnoi · 2026-01-22 20:38 · 0 claps · 0.6 min read
#aws-cdk #cdk
Open on Medium ↗
Wiki topics: ☁️ · DevOps & Cloud

Customizing CDK Bootstrap resources

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.

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.


메타데이터
post_id
cf1b0e9eb5f0
slug
customizing-cdk-bootstrap-resources-cf1b0e9eb5f0
url
https://medium.com/@aviralaws/customizing-cdk-bootstrap-resources-cf1b0e9eb5f0
canonical_url
https://medium.com/@aviralaws/customizing-cdk-bootstrap-resources-cf1b0e9eb5f0
author_url
https://medium.com/@aviralaws
status
ok
fetched_at
2026-06-11 21:11:36