-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (33 loc) · 1018 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
40
41
42
43
44
.PHONY: tf-init
tf-init:
docker-compose run --rm terraform init
.PHONY: tf-fmt
tf-fmt:
docker-compose run --rm terraform fmt -recursive
.PHONY: tf-validate
tf-validate:
docker-compose run --rm terraform validate
.PHONY: tf-plan
tf-plan:
docker-compose run --rm terraform plan
.PHONY: tf-apply
tf-apply:
docker-compose run --rm terraform apply
.PHONY: tf-apply-approve
tf-apply-approve:
docker-compose run --rm terraform apply -auto-approve
.PHONY: tf-destroy
tf-destroy:
docker-compose run --rm terraform destroy
.PHONY: tf-workspace-staging
tf-workspace-staging:
docker-compose run --rm terraform workspace select staging || docker-compose run --rm terraform workspace new staging
.PHONY: tf-workspace-default
tf-workspace-default:
docker-compose run --rm terraform workspace select default
.PHONY: kubectl-get--namespaces
kubectl-get-namespaces:
docker-compose run --rm kubectl get all --all-namespaces
.PHONY: kubectl-get-all-nodes
kubectl-get-nodes:
docker-compose run --rm kubectl get nodes