Skip to content

Commit bf21c2f

Browse files
authored
Added script to delete tf-state bucket on stack_destroy (#21)
1 parent 3539db9 commit bf21c2f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
if [[ $TERRAFORM_DESTROY = true ]] ; then
4+
echo "Destroying S3 buket"
5+
aws s3 rb s3://$TF_STATE_BUCKET --force
6+
fi

0 commit comments

Comments
 (0)