-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (28 loc) · 846 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
#!make
-include .env
export
POETRY := poetry
help: ## Display this help
@grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
pre-commit: ## Run pre-commit
@ ${POETRY} run pre-commit run --all-files
test: ## Run tests
@ ${POETRY} run pytest
plan: ## Run terraform plan
@cd terraform && \
rm -rf .terraform && \
terraform init && \
terraform plan \
-var-file=project_configuration/variables.auto.tfvars \
-out=terraform.tfplan
apply: ## Run terraform apply
@cd terraform && \
rm -rf .terraform && \
terraform init && \
terraform apply terraform.tfplan
destroy: ## Run terraform apply
@cd terraform && \
rm -rf .terraform && \
terraform init && \
terraform destroy \
-var-file=project_configuration/variables.auto.tfvars