Skip to main content
Menu
Terraform | Cheatsheets
Terraform

Quick References #

Terraform Install through tfenv #

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

$HOME/bashrc

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/s3.dev.tf -reconfigure

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