forked from usegalaxy-eu/infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
25 lines (19 loc) · 693 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
VAULT_PASSWORD_FILE = .vault_password
help:
@echo "Run 'make all' to sync resources."
@echo ""
all: ## Sync resources
terraform init
terraform fmt
terraform validate
terraform apply
fmt:
terraform fmt
terraform validate
encrypt: ## Encrypt the state file
ansible-vault encrypt terraform.tfstate --vault-password-file $(VAULT_PASSWORD_FILE)
ansible-vault encrypt terraform.tfstate.backup --vault-password-file $(VAULT_PASSWORD_FILE)
decrypt: ## Decrypt the state file
ansible-vault decrypt terraform.tfstate --vault-password-file $(VAULT_PASSWORD_FILE)
ansible-vault decrypt terraform.tfstate.backup --vault-password-file $(VAULT_PASSWORD_FILE)
.PHONY: help all