Skip to content

Commit 39971a4

Browse files
committed
Pass environment var to bootstrap tf apply
1 parent 58a8697 commit 39971a4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ ENV ?= staging
22

33
apply: apply-remote-state apply-secrets apply-env apply-k8s-utils
44

5-
apply-remote-state:
5+
apply-remote-state:
66
pushd terraform/bootstrap/remote-state; \
77
terraform init; \
8-
terraform apply
8+
terraform apply -var "environment=$(ENV)"
99

10-
apply-secrets:
10+
apply-secrets:
1111
pushd terraform/bootstrap/secrets; \
1212
terraform init; \
1313
terraform apply
1414

15-
apply-env:
15+
apply-env:
1616
pushd terraform/environments/$(ENV); \
1717
terraform init; \
1818
terraform apply
@@ -24,15 +24,15 @@ apply-k8s-utils:
2424

2525
teardown: teardown-k8s-utils teardown-env teardown-secrets teardown-remote-state
2626

27-
teardown-remote-state:
27+
teardown-remote-state:
2828
pushd terraform/bootstrap/remote-state; \
2929
terraform destroy;
3030

31-
teardown-secrets:
31+
teardown-secrets:
3232
pushd terraform/bootstrap/secrets; \
3333
terraform destroy -auto-approve;
3434

35-
teardown-env:
35+
teardown-env:
3636
pushd terraform/environments/$(ENV); \
3737
terraform destroy -auto-approve;
3838

0 commit comments

Comments
 (0)