iac_modules/terraform-hcl-standard/aws-cloud/component/landingzone/Makefile

23 lines
453 B
Makefile

CONFIG_ROOT ?= ../../../../../gitops
CONFIG_DIR ?= $(CONFIG_ROOT)/config
export TF_VAR_config_root ?= $(CONFIG_ROOT)
render:
python ../../../utils/render_provider_backend.py \
--config-dir $(CONFIG_DIR) \
--template-dir ../../templates \
--component-dir .. \
--component landingzone
init: render
terraform init --upgrade
plan: init
terraform plan
apply: init
terraform apply -auto-approve
destroy: init
terraform destroy -auto-approve