Created
November 7, 2020 12:28
-
-
Save amacal/41dae55784be2aeeba0662f79542ebbf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REGION := us-east-1 | |
ACCOUNT_ID := $(shell aws sts get-caller-identity --query Account --output text) | |
init: | |
@terraform init -reconfigure -upgrade | |
clean: | |
@rm -rf .terraform terraform.* | |
plan: | |
@terraform plan -var 'region=$(REGION)' -var 'account_id=$(ACCOUNT_ID)' | |
apply: | |
@terraform apply -auto-approve -var 'region=$(REGION)' -var 'account_id=$(ACCOUNT_ID)' | |
destroy: | |
@terraform destroy -var 'region=$(REGION)' -var 'account_id=$(ACCOUNT_ID)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment