From fe0f3e5bb483cdbff82075017017cd37f8a3a0f9 Mon Sep 17 00:00:00 2001 From: x1unix Date: Mon, 12 Aug 2024 19:26:36 -0400 Subject: [PATCH] feat: add Makefile for gcloud example --- docs/deployment/gcloud/Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docs/deployment/gcloud/Makefile diff --git a/docs/deployment/gcloud/Makefile b/docs/deployment/gcloud/Makefile new file mode 100644 index 00000000..7b5a593a --- /dev/null +++ b/docs/deployment/gcloud/Makefile @@ -0,0 +1,22 @@ +TF ?= terraform +GCLOUD ?= gcloud +TFPLAN ?=tfplan +VARS ?=prod.tfvars + +.PHONY: plan +plan: + $(TF) plan -var-file=$(VARS) -out $(TFPLAN) + +.PHONY: init +init: + $(GCLOUD) auth application-default login + $(TF) init + +.PHONY: apply +apply: + $(TF) apply $(TFPLAN) + +.PHONY: destroy +destroy: + $(TF) destroy -var-file=$(VARS) +