Skip to main content

Terraform Commands

 

Terraform Cheat Sheet

terraform version

$ terraform version Terraform v1.0.1 on darwin_amd64

terraform init

$ terraform init

Ask for input if necessary. If false, will error if input was required.

$ terraform init -input=false

You can also change the backend details using -backend-config option., reconfigure will reconfigure the backend, ignoring any saved configuration.

$ terraform init -backend-config=PATH/TO/CONFIGURATION_FILE -reconfigure


Comments

  1. This cheat sheet is a real time-saver! I’ve often had to look up backend reconfigure syntax in a hurry, so seeing it laid out clearly is helpful. Do you also plan to cover advanced Terraform commands like state manipulation or workspaces in a future update?

    ReplyDelete

Post a Comment

Popular posts from this blog