From 522f3b4f6580e0420df9514be2e951566a6c2fe7 Mon Sep 17 00:00:00 2001 From: thebugfinder Date: Sun, 11 Aug 2019 00:20:06 +0200 Subject: [PATCH] add Makefile --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..12610ac --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +SHELL := /usr/bin/env bash +TF_WORKSPACE ?= default + +.PHONY: install-git-pre-commit-hooks +# Install Git pre-commit hooks. +install-git-pre-commit-hooks: + pre-commit install --overwrite + +.PHONY: deploy +deploy: + terraform apply -var spokeAK="$${spokeAK}" -var spokeSK="$${spokeSK}" -var public_key="$${SSH_PUB_KEY}" + +.PHONY: destroy +destroy: + terraform destroy -var spokeAK="$${spokeAK}" -var spokeSK="$${spokeSK}" -var public_key="$${SSH_PUB_KEY}"