Skip to main content
Terraform | Cheatsheets

Quick References #

Terraform Install through tfenv #

$ git clone ~/.tfenv
$ echo 'export PATH="$HOME/.tfenv/bin:$PATH"'


Then, you can install desired version of terraform:

$ tfenv install 0.11.10

Usage #

Show Version #

$ terraform --version
# Terraform v0.11.10

Init Terraform #

$ terraform init

Init Terraform and don’t ask any input #

$ terraform init -input=false

Change backend configuration during the init #

$ terraform init -backend-config=cfg/ -reconfigure

-reconfigure is used in order to tell terraform to not copy the existing state to the new remote state location.