forked from nasa/cumulus-template-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Break teardown into separate scripts
- Loading branch information
1 parent
0a084c0
commit 73d69d2
Showing
4 changed files
with
28 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
### TEARDOWN TEA SECRET ### | ||
|
||
echo Cleaning up TEA secret for prefix $PREFIX | ||
|
||
aws secretsmanager delete-secret --secret-id $PREFIX"_jwt_secret_for_tea" --force-delete-without-recovery | ||
|
||
### TEARDOWN BUCKETS ### | ||
|
||
echo Cleaning up buckets for prefix $PREFIX | ||
|
||
aws s3 rb s3://$PREFIX-tf-state --force | ||
aws s3 rb s3://$PREFIX-internal --force | ||
aws s3 rb s3://$PREFIX-public --force | ||
aws s3 rb s3://$PREFIX-private --force | ||
aws s3 rb s3://$PREFIX-protected --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters