summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-04-05 08:28:38 +0300
committerPaul Buetow <paul@buetow.org>2025-04-05 08:28:38 +0300
commit1cfdd66a38dc2a10c0f383be92a3e763355df70f (patch)
tree5be9c5f0210a0e50bffddd1a8168e7e13bf8577a
parent51b8f7888da97aefe1958f1a864ba4426b357d37 (diff)
.PHONYing them
-rw-r--r--Makefile38
-rw-r--r--org-buetow-bastion/Makefile8
-rw-r--r--org-buetow-ecs/Makefile8
-rw-r--r--org-buetow-eks/Makefile8
4 files changed, 40 insertions, 22 deletions
diff --git a/Makefile b/Makefile
index 6d3afcb..5fdfa42 100644
--- a/Makefile
+++ b/Makefile
@@ -1,22 +1,28 @@
-apply:
- cd org-buetow-base && terraform apply -auto-approve
- #cd org-buetow-bastion && terraform apply -auto-approve
- cd org-buetow-elb && terraform apply -auto-approve
+.PHONY: apply destroy sleep for2h init recreate
+
+apply:
+ cd org-buetow-base && terraform apply -auto-approve
+ #cd org-buetow-bastion && terraform apply -auto-approve
+ cd org-buetow-elb && terraform apply -auto-approve
cd org-buetow-ecs && terraform apply -auto-approve
-destroy:
- cd org-buetow-ecs && terraform destroy -auto-approve
- cd org-buetow-elb && terraform destroy -auto-approve
- cd org-buetow-eks && terraform destroy -auto-approve
+
+destroy:
+ cd org-buetow-ecs && terraform destroy -auto-approve
+ cd org-buetow-elb && terraform destroy -auto-approve
+ cd org-buetow-eks && terraform destroy -auto-approve
cd org-buetow-bastion && terraform destroy -auto-approve
-sleep:
- @echo 'Waiting for 2 hours.'
+
+sleep:
+ @echo 'Waiting for 2 hours.'
sleep 7200
-for2h: apply sleep destroy
-init:
- cd org-buetow-base && terraform init
- cd org-buetow-bastion && terraform init
- cd org-buetow-elb && terraform init
- cd org-buetow-ecs && terraform init
+
+for2h: apply sleep destroy
+
+init:
+ cd org-buetow-base && terraform init
+ cd org-buetow-bastion && terraform init
+ cd org-buetow-elb && terraform init
+ cd org-buetow-ecs && terraform init
cd org-buetow-eks && terraform init
recreate: destroy apply
diff --git a/org-buetow-bastion/Makefile b/org-buetow-bastion/Makefile
index ac16539..0f09b3d 100644
--- a/org-buetow-bastion/Makefile
+++ b/org-buetow-bastion/Makefile
@@ -1,5 +1,9 @@
-apply:
+.PHONY: apply destroy recreate
+
+apply:
terraform apply -auto-approve
-destroy:
+
+destroy:
terraform destroy -auto-approve
+
recreate: destroy apply
diff --git a/org-buetow-ecs/Makefile b/org-buetow-ecs/Makefile
index ac16539..0f09b3d 100644
--- a/org-buetow-ecs/Makefile
+++ b/org-buetow-ecs/Makefile
@@ -1,5 +1,9 @@
-apply:
+.PHONY: apply destroy recreate
+
+apply:
terraform apply -auto-approve
-destroy:
+
+destroy:
terraform destroy -auto-approve
+
recreate: destroy apply
diff --git a/org-buetow-eks/Makefile b/org-buetow-eks/Makefile
index ac16539..0f09b3d 100644
--- a/org-buetow-eks/Makefile
+++ b/org-buetow-eks/Makefile
@@ -1,5 +1,9 @@
-apply:
+.PHONY: apply destroy recreate
+
+apply:
terraform apply -auto-approve
-destroy:
+
+destroy:
terraform destroy -auto-approve
+
recreate: destroy apply