aws-samples/aws-cdk-intro-workshop

(Still) Incomplete cleanup

yairst opened this issue · 0 comments

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:

  1. Follow the instructions on clean up stage: add RemovalPolicy to the table code and run cdk destroy.
  2. 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