generated from figurate/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env
17 lines (15 loc) · 803 Bytes
/
.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
TERRAFORM_VERSION=1.3.3
TF_PLUGIN_CACHE_DIR?=${HOME}/.terraform.d/plugin-cache/
AWS_DEFAULT_REGION?=ap-southeast-2
ifneq (, $(shell which terraform))
TERRAFORM=TF_PLUGIN_CACHE_DIR=$(TF_PLUGIN_CACHE_DIR) terraform
else
TERRAFORM=docker run --rm -v "${PWD}:/work" -v "$(TF_PLUGIN_CACHE_DIR):/plugin-cache" \
-e AWS_DEFAULT_REGION=$(AWS_DEFAULT_REGION) -e http_proxy=$(http_proxy) \
--net=host figurate/terraform:$(TERRAFORM_VERSION)
endif
TERRAFORM_DOCS=docker run --rm -v "${PWD}:/work" tmknom/terraform-docs
CHECKOV=docker run --rm -v "${PWD}:/work" bridgecrew/checkov
TFSEC=docker run --rm -v "${PWD}:/work" aquasec/tfsec
DIAGRAMS=docker run --rm -v "${PWD}:/work" figurate/diagrams python
INFRACOST=docker run --rm -v ${PWD}:/work -v ${HOME}:/root infracost/infracost breakdown --path=/work