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

Microsoft Windows 10 1903

Check for new feature at What's new in Windows 10, version 1903 IT Pro content

Microsoft Edge: Notes

Try switching to Microsoft Edge browser, which is based on Chromium open source project.

Linux command: printenv

printenv - print all or part of environment NAME        printenv - print all or part of environment SYNOPSIS        printenv [OPTION]... [VARIABLE]... DESCRIPTION        Print  the  values  of the specified environment VARIABLE(s).  If no VARIABLE is speci‐        fied, print name and value pairs for them all.        -0, --null               end each output line with NUL, not newline        --help display this help and exit        --version               output version information and exit        NOTE: your shell may have its own version of printenv,  which  usually  supersedes  the        version  described  here.  Please refer to your shell's documentation for d...