forked from lantrix/terraform-remote-state-s3-cloudformation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (22 loc) · 893 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
stack_name := terraform-state
stack_managed_policy_name := terraform-state-managed-policy
stack_region := ap-southeast-2
no_color := \033[0m
ok_color := \033[32;01m
.PHONY: deploy-policy
deploy-policy: $(workspace)
@echo "\n$(ok_color)====> Deploying Terraform state managed policy stack$(no_color)"
op plugin run -- aws cloudformation deploy \
--stack-name $(stack_managed_policy_name) \
--template-file stack-managed-policy.template \
--capabilities CAPABILITY_NAMED_IAM \
--region $(stack_region) \
--no-fail-on-empty-changeset
.PHONY: deploy
deploy: $(workspace)
@echo "\n$(ok_color)====> Deploying Terraform remote state stack$(no_color)"
op plugin run -- aws cloudformation deploy \
--stack-name $(stack_name) \
--template-file stack.template \
--region $(stack_region) \
--no-fail-on-empty-changeset