AWS CDK Bootstrap prepares your AWS account for deploying CDK applications by creating essential infrastructure resources. This is a one-time setup process per AWS account/region combination that establishes the foundation for all CDK deployments.
The bootstrap process provisions the following AWS resources in your account:
1. S3 Bucket (CDK Assets Bucket)
cdk-hnb659fds-assets-{ACCOUNT-ID}-{REGION}2. CloudFormation Stack (CDKToolkit)
CDKToolkit3. IAM Roles
cdk-hnb659fds-cfn-exec-role: CloudFormation execution role for deploying stackscdk-hnb659fds-deploy-role: Role used by CDK CLI during deploymentcdk-hnb659fds-file-publishing-role: Role for uploading assets to S3cdk-hnb659fds-lookup-role: Role for reading environment context4. SSM Parameters
/cdk-bootstrap/hnb659fds/version: Stores bootstrap version numberAfter bootstrapping, our project will deploy multiple CDK stacks defined in D:\Project_AWS\everyonecook\infrastructure\lib\stacks:
These stacks depend on the bootstrap infrastructure to deploy successfully.
Before beginning this lab, ensure you have:
AdministratorAccess permissions or equivalentConfirm resources in the AWS Management Console. 3.1. Verify CloudFormation Stack
CDKToolkitCREATE_COMPLETE** Screenshot Required:**

3.2. Verify S3 Bucket
cdk-hnb659fds-assets-{ACCOUNT-ID}-us-east-1** Screenshot Required:**

3.3. Verify IAM Roles
cdk-hnb659fdscdk-hnb659fds-cfn-exec-role-{ACCOUNT-ID}-us-east-1cdk-hnb659fds-deploy-role-{ACCOUNT-ID}-us-east-1cdk-hnb659fds-file-publishing-role-{ACCOUNT-ID}-us-east-1cdk-hnb659fds-lookup-role-{ACCOUNT-ID}-us-east-1
The CDK assets bucket serves as a central repository for all deployment artifacts:
1. CloudFormation Execution Role (cfn-exec-role)
2. Deploy Role (deploy-role)
cdk deploy operations3. File Publishing Role (file-publishing-role)
4. Image Publishing Role (image-publishing-role)
5. Lookup Role (lookup-role)
One-time Setup:
Ongoing Monthly Costs:
| Resource | Usage | Cost (Estimated) |
|---|---|---|
| S3 Storage | < 1 GB (typical) | $0.023/GB = ~$0.02/month |
| S3 Requests | Minimal (GET/PUT) | ~$0.01/month |
| IAM Roles | No charge | $0.00 |
Total Estimated Cost: ~$0.03/month (negligible)
Note: For serverless applications, costs remain minimal as we only store Lambda deployment packages in S3.
Ensure you have completed all steps and captured required screenshots:
Verified AWS account bootstrap status
Retrieved your AWS account ID
Executed CDK bootstrap command
Created CDKToolkit CloudFormation stack
Provisioned CDK assets S3 bucket
Created necessary IAM roles for CDK deployments
Verified bootstrap version in SSM Parameter Store
Understood the purpose and cost of each bootstrap resource In this lab, you successfully:
Executed CDK bootstrap command for your AWS account
Created CDKToolkit CloudFormation stack
Provisioned CDK assets S3 bucket for storing Lambda packages
Created necessary IAM roles for CDK deployments
Verified all resources via CLI and AWS Console
Your AWS account is now ready to deploy serverless CDK applications, including the infrastructure stacks for the EveryoneCook project.