Skip to content

Instantly share code, notes, and snippets.

Created August 23, 2021 04:44
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
# To initialize a working directory containing Terraform configuration files
terraform init
# To rewrite Terraform configuration files to a canonical format and style
terraform fmt
# To validate the configuration files in a directory (not accessing any remote services such as remote state, provider APIs, etc)
terraform validate
# Optional to run || To generate a visual representation || Need Graphviz package
terraform graph | dot -Tpng > GithubasaCode.png
# To create an execution plan || using -out=FILE option, the plan could be stored as an external file
terraform plan
# To execute the actions proposed in a Terraform plan
terraform apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment