Skip to content

Instantly share code, notes, and snippets.

Embed
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