DeployFrame Docs

AWS CDK Bootstrap

Minimal guide for bootstrapping AWS environment with AWS CDK.

AWS CDK Bootstrap

Before deploying your AI SaaS platform, you need to bootstrap your AWS environment. This process sets up the necessary AWS resources required for CDK deployments.

Prerequisites

Ensure you have completed the following:

Bootstrapping AWS Environment

1. Get Your AWS Account ID

We need your AWS Account ID for the bootstrap command. Run:

aws sts get-caller-identity

Expected Output:

{
    "UserId": "AIDAXXXXXXXXXXXX",
    "Account": "123456789012",
    "Arn": "arn:aws:iam::123456789012:user/ai-saas-admin"
}

Extract Your AWS Account ID:

  • The Account field in the output (e.g., 123456789012) is your AWS Account ID.
  • You will replace $AWS_ACCOUNT_ID with this value in the next step.

If this command fails, revisit the AWS CLI Setup section to ensure your credentials are configured properly.

2. Run CDK Bootstrap for Your AWS Account

Run the following command, replacing the account ID placeholder with your actual AWS Account ID:

npx cdk bootstrap aws://$AWS_ACCOUNT_ID/eu-west-2

Where:

  • $AWS_ACCOUNT_ID → Your AWS Account ID from the previous command.
  • eu-west-2 → The AWS region (London) used consistently throughout this guide.

Example Command:

npx cdk bootstrap aws://123456789012/eu-west-2

This guide uses eu-west-2 (London) region consistently throughout all deployment steps for simplicity and consistency.

Expected Output After Running Bootstrap:

⏳  Bootstrapping environment aws://123456789012/eu-west-2...
✅  Environment aws://123456789012/eu-west-2 bootstrapped.

Next Steps

Once the AWS environment is bootstrapped, proceed to Deployment Configuration to set up your environment for deployment.

On this page