shlogg · Early preview
Max Kryvych @maxkrivich

Cross-Account AWS CDK Bootstrapping With Lambda

Perform cross-account AWS CDK Bootstrapping using Lambda, eliminating need for StackSet sync. Simplify process by running cdk bootstrap in a Lambda function.

Introduction

In this article, we will explore how to perform cross-account AWS CDK Bootstrapping using AWS Lambda. Bootstrapping is a critical step when deploying infrastructure defined using AWS CDK, as it sets up the necessary resources for subsequent deployments.

  
  
  What is CDK Bootstrapping?

CDK Bootstrapping involves creating a CloudFormation stack (CDKToolkit) that contains essential resources. The template for this stack can be found here.
There are two primary approaches to CDK Bootstrapping:

Using CloudFormation StackSet: Create a StackSet with the provided template. Learn mo...