Show Menu
Cheatography

Terraform basics Cheat Sheet (DRAFT) by

Basic terraform commands to get started

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Basics

terraform version
Find the terraform version
terraform -chdir­=<path to> <su­bco­mma­nd>
Switch the working directory
terraform init
Initialize the directory
terraform plan
Create an execution plan
 
- create after initia­lizing dir
 
- will print out and show config­uration
terraform apply
Apply changes
terraform destroy
Destroy managed infras­tru­cture
 

Plan, Deploy and Cleanup

terraform plan -out <plan name>
-out flag outputs deployment plan