Skip to content

Commit

Permalink
adding log events to ensure they are occuring (#1497)
Browse files Browse the repository at this point in the history
  • Loading branch information
bflynn-cms authored Aug 23, 2024
1 parent 7854195 commit 4a131d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions destroy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ do
#delete any unversioned files
echo `aws s3 rm s3://$x/ --recursive`
#turn off writes to bucket
echo 'Denying writes to bucket ' $x
echo `aws s3api put-bucket-policy --bucket $x --policy '{
"Version": "2012-10-17",
"Statement": [
Expand All @@ -67,6 +68,7 @@ do
]
}'`
#force delete the bucket
echo 'Deleting bucket ' $x
echo `aws s3api rb s3://$x --force`
done
echo 'deleting stack: ' $i
Expand Down

0 comments on commit 4a131d0

Please sign in to comment.