(bootstrap): cannot destroy bootstrap stack
- Dominant language
- TypeScript
- Stars
- 105
- Forks
- 122
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 71
Description
Steps
1. run 'cdk bootstrap' creates S3 Bootstrap Bucket via cloudformation template.
2. run 'cdk bootstrap destroy' or 'cdk destroy'
Expected:
Informs you you need to remove the bootstrap bucket manually and then delete the cloudformation. (perhaps also the name and region with links)
Or : Removes the cloudformation S3 bucket , which could get below error.
-----The bucket you tried to delete is not empty (Service: Amazon S3; Status Code: 409; Error Code: BucketNotEmpty; Request ID:
Or: Option to delete the s3 bucket if empty
Current: S3 bucket not removed or no option to run.
Workaround:
Open console our use CLI to remove the s3 bucket created and the cloudformatin template
Note: Is it a standard use case to always run cdk bootstrap before initial deploy.
Contributor guide
Assessment
This issue has not been assessed yet.