Skip to content

Instantly share code, notes, and snippets.

@devcfgc
Last active March 29, 2017 05:00
Show Gist options
  • Save devcfgc/19663a825852955d714f7a3da857c9d0 to your computer and use it in GitHub Desktop.
Save devcfgc/19663a825852955d714f7a3da857c9d0 to your computer and use it in GitHub Desktop.
terraform commands
$ terraform plan # plan
$ terraform apply # shortcut for plan & apply - avoid this in production
$ terraform plan -out changes.terraform # terraform plan and write the plan to out file
$ terraform apply changes.terraform # apply terraform plan using out file
$ terraform show # show current state
$ cat terraform.tfstate # show state in JSON format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment