S3 bucket default removal policy not respected #2526
Labels
bug
This issue is a bug.
closing-soon
This issue will automatically close in 4 days unless further comments are made.
Describe the bug
Documentation states that the
RemovalPolicy.Destroy
is the default but if you don't explicitly set the value, the S3 bucket will not be removed on cdk destroy.To Reproduce
The following code will not destroy the S3 bucket:
However, explicitly setting RemovalPolicy will destroy the bucket during
cdk destroy
:Expected behavior
S3 bucket should be destroyed without explicitly defining removal policy.
Version:
The text was updated successfully, but these errors were encountered: