xct's notes
Search…
Terraform

Base Commands

1
terraform init
2
terraform plan
3
terraform apply
4
terraform destroy
Copied!
Note: Be careful when using conditionals like: var.ENVIRONMENT == "deploy" ? 0 : 1 because if you pass in no environment variable at all it will default to deploy. So to reach the "not deploy" state you have to pass in something like --var ENVIRONMENT=test .
Last modified 1yr ago
Copy link