Bootstrap Errors

This page contains a list of CDK error messages, and a way to fix them.

As more errors are encountered and fixed this page will be updated accordingly.

Errors

[100%] fail: No bucket named ‘cdktoolkit-stagingbucket-########’. Is account ######### bootstrapped?

Cause: CDK requires a staging bucket in S3 containing CDK assets, which may have been removed.

Investigation:

  • Running aws s3 ls does not yield the bucket.

Fix:

  • Navigate to the AWS management console

  • Open CloudFormation

  • Look for and remove the stack called CDKToolkit

✅ Now re-run cdk bootstrap this will re-generate the staging bucket and the stack CDKToolkit

Last updated on 8 Jul 2020
Published on 8 Jul 2020