Bootstrap CDK

One-time setup to prepare an AWS account for CDK deployments.

What It Does

Creates a CDKToolkit CloudFormation stack containing:

When to Run

Check If Already Bootstrapped

AWS_PROFILE=orcha-prod aws cloudformation describe-stacks \
  --stack-name CDKToolkit \
  --region eu-central-1 \
  --query 'Stacks[0].StackStatus' \
  --output text

If you see CREATE_COMPLETE or UPDATE_COMPLETE, it's already bootstrapped. If you see "Stack with id CDKToolkit does not exist", you need to bootstrap.

Run

cd /home/volrath/code/orcha/infra
source .venv/bin/activate
AWS_PROFILE=orcha-prod cdk bootstrap aws://700558745280/eu-central-1

Verify

AWS_PROFILE=orcha-prod aws cloudformation describe-stacks \
  --stack-name CDKToolkit \
  --region eu-central-1 \
  --query 'Stacks[0].StackStatus' \
  --output text
# Should return: CREATE_COMPLETE

Notes