One-time setup to prepare an AWS account for CDK deployments.
Creates a CDKToolkit CloudFormation stack containing:
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.
cd /home/volrath/code/orcha/infra
source .venv/bin/activate
AWS_PROFILE=orcha-prod cdk bootstrap aws://700558745280/eu-central-1
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