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

Linux command: lastlog

lastlog command reports the most recent login of all users or of a given user. NAME lastlog - reports the most recent login of all users or of a given user SYNOPSIS lastlog [options] DESCRIPTION lastlog formats and prints the contents of the last login log /var/log/lastlog file. The login-name, port, and last login time will be printed. The default (no flags) causes lastlog entries to be printed, sorted by their order in /etc/passwd. OPTIONS The options which apply to the lastlog command are: -b, --before DAYS Print only lastlog records older than DAYS. -h, --help Display help message and exit. -R, --root CHROOT_DIR Apply changes in the CHROOT_DIR directory and use the configuration files from the CHROOT_DIR directory. -t, --time DAYS Print the lastlog records more recent than DAYS. -u, --user LOGIN|RANGE Print the ...

Powershell: Get-ChildItem

List, search/find files and directories with Get-ChildItem cmdlet.

Microsoft Windows Server 2012 R2 Standard Evaluation Product Key

Microsoft Windows Server 2012 R2 Standard Evaluation D2N9P-3P6X9-2R39C-7RTCD-MDVJX DBGBW-NPF86-BJVTX-K3WKJ-MTB6V