Skip to content

Commit

Permalink
chore: add a script to cleanup after failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
connec committed Apr 12, 2024
1 parent f24acb9 commit f6f947d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

set -euo pipefail

stacks=$(
aws cloudformation list-stacks \
--stack-status-filter REVIEW_IN_PROGRESS ROLLBACK_FAILED ROLLBACK_COMPLETE UPDATE_ROLLBACK_COMPLETE \
--query "StackSummaries[?starts_with(StackName, 'cloudformatious-testing-')].StackName" \
--output text
)
for stack in $stacks ; do
aws cloudformation delete-stack --stack-name "$stack"
done

0 comments on commit f6f947d

Please # to comment.