aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/deploy.sh')
-rwxr-xr-xscripts/deploy.sh16
1 files changed, 15 insertions, 1 deletions
diff --git a/scripts/deploy.sh b/scripts/deploy.sh
index d7d18ff..e56088e 100755
--- a/scripts/deploy.sh
+++ b/scripts/deploy.sh
@@ -28,7 +28,21 @@ select yn in "Yes" "No"; do
esac
done
- terraform apply -auto-approve
+ terraform apply
+
+ echo "Would you like to destroy the newly-created infrastructure?"
+ select destroy_2 in "Yes" "No"; do
+ case $destroy_2 in
+ Yes)
+ terraform destroy
+ break
+ ;;
+ No)
+ echo "Skipping final destroy... Infrastructure will remain."
+ break
+ ;;
+ esac
+ done
break
;;
git.ajschof.me — hosted by ajschofield — powered by cgit