Skip to content

Add cleanup.sh and document cleanup step in README#2

Open
rajvih wants to merge 1 commit into
mainfrom
add-cleanup-script
Open

Add cleanup.sh and document cleanup step in README#2
rajvih wants to merge 1 commit into
mainfrom
add-cleanup-script

Conversation

@rajvih

@rajvih rajvih commented Jun 10, 2026

Copy link
Copy Markdown
Contributor
  • Add cleanup.sh script to safely remove all deployed resources in the correct order: runtime S3 buckets (including versioned objects), DynamoDB table (RemovalPolicy.RETAIN bypasses cdk destroy), then both CDK stacks via cdk destroy --force
  • Add --dry-run flag for previewing deletions without making changes
  • Add Step 4 Cleanup section to README with usage instructions

Resolves: runtime-created S3 buckets and the retained DynamoDB table are not removed by deleting the CloudFormation stack alone

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

- Add cleanup.sh script to safely remove all deployed resources in
  the correct order: runtime S3 buckets (including versioned objects),
  DynamoDB table (RemovalPolicy.RETAIN bypasses cdk destroy), then
  both CDK stacks via cdk destroy --force
- Add --dry-run flag for previewing deletions without making changes
- Add Step 4 Cleanup section to README with usage instructions

Resolves: runtime-created S3 buckets and the retained DynamoDB table
are not removed by deleting the CloudFormation stack alone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant