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

IIS: Delete cached files on server running IIS

Delete cached files on server running IIS When changing css, javascript files, check to delete if IIS still caches old files in the default folder C:\inetpub\temp\IIS Temporary Compressed Files\<sitename>\$^_gzip_D^\ Apply to: IIS 8.5

Linux command: du - disk usage

Where have all my storage gone? du summarize disk usage of the set of FILEs, recursively for directories.

ManageEngine ServiceDesk Plus - Reset password

Let's reset the default administrator's password to 'admin'