-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (42 loc) · 1.02 KB
/
Makefile
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# USAGE
define USAGE
Usage: make [help | install | lint | fmt | compliance env=[environment] | plan env=[environment] | apply env=[environment] | destroy env=[environment]]
endef
export USAGE
define USAGE_SETUP
Usage: make [help | install | lint | fmt | compliance_setup env=[environment] | plan_setup env=[environment] | apply_setup env=[environment] | destroy_setup env=[environment]]
endef
export USAGE_SETUP
TF_DIR := ./terraform
UNAME := $(shell uname -s)
help:
@echo "$$USAGE"
install:
tfenv install
tgenv install
lint:
./scripts/lint.sh
fmt:
./scripts/fmt.sh
compliance:
./scripts/compliance.sh $(env)
init:
./scripts/init.sh $(env)
plan: init
./scripts/plan.sh $(env)
apply:
./scripts/apply.sh $(env)
destroy:
./scripts/destroy.sh $(env)
help_setup:
@echo "$$USAGE_SETUP"
compliance_setup:
./scripts/compliance.sh $(env)
init_setup:
./scripts/init.sh $(env)_setup
plan_setup: init
./scripts/plan.sh $(env)_setup
apply_setup:
./scripts/apply.sh $(env)_setup
destroy_setup:
./scripts/destroy.sh $(env)_setup