aws-samples / amazon-cloudwatch-alarms-repeated-notification-cdk

MIT No Attribution
10 stars 4 forks source link

Deployment issues - CDK requires bootstrap #9

Open erwindsnapper opened 4 months ago

erwindsnapper commented 4 months ago

Hey Team,

Im having this issue when trying to deploy it: ❌ RepeatedCloudWatchAlarmStack failed: Error: This stack uses assets, so the toolkit stack must be deployed to the environment (Run "cdk bootstrap aws://unknown-account/unknown-region") at addMetadataAssetsToManifest (/Users/erwin.dejucos/.nvm/versions/node/v20.8.1/lib/node_modules/aws-cdk/lib/index.js:425:560) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async deployStack (/Users/erwin.dejucos/.nvm/versions/node/v20.8.1/lib/node_modules/aws-cdk/lib/index.js:425:4579) at async Object.deployStack2 [as deployStack] (/Users/erwin.dejucos/.nvm/versions/node/v20.8.1/lib/node_modules/aws-cdk/lib/index.js:430:196919) at async /Users/erwin.dejucos/.nvm/versions/node/v20.8.1/lib/node_modules/aws-cdk/lib/index.js:430:178888

❌ Deployment failed: Error: This stack uses assets, so the toolkit stack must be deployed to the environment (Run "cdk bootstrap aws://unknown-account/unknown-region") at addMetadataAssetsToManifest (/Users/erwin.dejucos/.nvm/versions/node/v20.8.1/lib/node_modules/aws-cdk/lib/index.js:425:560) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async deployStack (/Users/erwin.dejucos/.nvm/versions/node/v20.8.1/lib/node_modules/aws-cdk/lib/index.js:425:4579) at async Object.deployStack2 [as deployStack] (/Users/erwin.dejucos/.nvm/versions/node/v20.8.1/lib/node_modules/aws-cdk/lib/index.js:430:196919) at async /Users/erwin.dejucos/.nvm/versions/node/v20.8.1/lib/node_modules/aws-cdk/lib/index.js:430:178888

This stack uses assets, so the toolkit stack must be deployed to the environment (Run "cdk bootstrap aws://unknown-account/unknown-region")

Although we're already using cdk and have bootstrapped it.

Wondering if you can suggest how we can use this? also, have tried using --context but it does not work

Thanks team! appreciate your work!