aws / aws/aws-cdk-cli

(bootstrap): cannot destroy bootstrap stack

Open
#643 31 comments 69 reactions 1 assignee Claimed by @sanjanaravikumar-az View on GitHub
effort/medium feature-request p1
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.