Skip to content

Instantly share code, notes, and snippets.

@amacal
Created November 7, 2020 12:28
Show Gist options
  • Save amacal/41dae55784be2aeeba0662f79542ebbf to your computer and use it in GitHub Desktop.
Save amacal/41dae55784be2aeeba0662f79542ebbf to your computer and use it in GitHub Desktop.
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