-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathinfra-down.sh
More file actions
executable file
·33 lines (25 loc) · 853 Bytes
/
infra-down.sh
File metadata and controls
executable file
·33 lines (25 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
echo "*****************************************************************"
echo "Deleting the bastion host"
echo "*****************************************************************"
sleep 3
cd terraform/resources/bastion-host
terraform init
terraform destroy --auto-approve
cd -
echo "*****************************************************************"
echo "Deleting the VPC module"
echo "*****************************************************************"
sleep 3
cd terraform/resources/vpc
terraform init
terraform destroy --auto-approve
cd -
echo "*****************************************************************"
echo "Deleting s3 backend module"
echo "*****************************************************************"
sleep 3
cd terraform/resources/s3-backend-with-replication
terraform init
terraform destroy --auto-approve
cd -