(Still) Incomplete cleanup
yairst opened this issue · 0 comments
yairst commented
Describe the bug
The clean up stage has been recently updated in #592 to include RemovalPolicy
for the dynamoDB table.
However, running cdk destroy
right after adding the RemovalPolicy
prop to the code does not delete the table.
Expected Behavior
DynamoDB table should be deleted.
Current Behavior
DynamoDB table is retained after cdk destroy
.
Reproduction Steps
Assuming that you have a cdk-workshop
stack in a state as it should be before running the steps in the clean up stage:
- Follow the instructions on clean up stage: add
RemovalPolicy
to the table code and runcdk destroy
. - Go AWS DynamDB console and see that the table is still there.
Possible Solution
Run cdk deploy
first in order to update the table and only then run cdk destroy
.
Additional Information/Context
No response
CDK CLI Version
No response
Section
No response
Browser
No response
Language
No response