Re-implementation of the CDK bootstrapping CloudFormation into a Terraform module, for easy use with AWS Account Factory for Terraform.
Before deploying resources using AWS CDK you must bootstrap each environment, i.e. each combination of AWS Account and Region you wish to deploy to. Out of the box this can be achieved with the cdk bootstrap
command, which manifests as a CloudFormation Stack. When using AWS Control Tower with the AWS Account Factory for Terraform, a Terraform-based approach fits better.
By default, CDK allows for multiple CDK boostrapping stacks in th same environment, via the qualifier
parameter, which acts as a namespace.
Over time the CDK bootstrap stack may evolve; this implementation is based on the most recent, version 17, and the raw CloudFormation captured from running cdk bootstrap --show-template > cloudformation\bootstrap.yaml
is versioned in this repository.