-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
40 lines (30 loc) · 918 Bytes
/
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
.PHONY: ready gen fmt check clean init apply destroy fresh
ready: gen fmt check
# generate the root module: main.tf, variables.tf, outputs.tf and README.md
gen:
terraform init -upgrade
go run tools/generaterootmod.go
fmt:
terraform fmt -recursive
gofmt -w -s ./tools
check:
terraform fmt -check -recursive
tflint --recursive --minimum-failure-severity=error
# warning - this will destroy you terraform state file
clean:
rm -rf .terraform*
init:
terraform init
apply:
terraform apply \
-var="lightstep_organization=LightStep" \
-var="lightstep_env=staging" \
-var="lightstep_project=dev-integrations" \
-var="lightstep_api_key_env_var=LIGHTSTEP_API_KEY"
fresh: destroy clean init apply
destroy:
terraform destroy \
-var="lightstep_organization=LightStep" \
-var="lightstep_env=staging" \
-var="lightstep_project=dev-integrations" \
-var="lightstep_api_key_env_var=LIGHTSTEP_API_KEY"