Skip to main content

Terraform: Write, Plan, and Create Infrastructure as Code

Terraform Logo

Build.Change.Destroy infrastructure with Terraform by HashiCorp.

Download Terraform.

Terraform CLI Documentation

Keep updating

Announcing HashiCorp Terraform 1.0 General Availability

Terraform on Google Cloud Shell

tuyendq@cloudshell:~ (practicehabits)$ which terraform
/usr/local/bin/terraform
tuyendq@cloudshell:~ (practicehabits)$ terraform -v
Terraform v0.12.2

Your version of Terraform is out of date! The latest version
is 0.12.6. You can update by downloading from www.terraform.io/downloads.html
tuyendq@cloudshell:~ (practicehabits)$

terraform init : download plugins
terraform fmt : format *.tf files
terraform validate : validate *.tf files
terraform apply
terraform apply -auto-approve : apply without prompting
terraform destroy
terraform destroy -auto-approve : destroy withoud prompting
terraform show

CLI Configuration File (.terraform or terraform.rc)

https://www.terraform.io/docs/commands/cli-config.html

Microsoft Windows: $env:APPDATA\terraform.rc

PS> cat $env:APPDATA\terraform.rc
plugin_cache_dir = "F:\\HashiCorp\\terraform\\.terraform.d\\plugin-cache"

Popular posts from this blog

Take Free English Tests Online

Free online English tests EF Standard English Test https://www.efset.org/ Exam English https://www.examenglish.com/

Choose PHP Thread Safe or Non-Thread Safe for IIS

If you are using PHP as FastCGI with IIS you should use the Non-Thread Safe (NTS) version of PHP.