blob: 0446184136b282fd171fc2d805eb342b8ae4c4d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# Deploy Script
# Description: Deploy and destroy Terraform
# WARNING: This will most likely destroy any current infrastructure if protections
# are not in place. Be careful!
echo "WARNING: This script will destroy any infrastructure for testing."
echo "It should not be used once a proper deployment has been setup."
echo "Would you like to continue?"
select yn in "Yes" "No"; do
case $yn in
Yes ) cd ../terraform/; terraform destroy -auto-approve; terraform apply -auto-approve; terraform destroy -auto-approve; break;;
No ) exit;;
esac
done
|