Skip to content

Instantly share code, notes, and snippets.

@SanthoshNC
Created August 23, 2021 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SanthoshNC/ad2c77712879b73d985707096c217878 to your computer and use it in GitHub Desktop.
Save SanthoshNC/ad2c77712879b73d985707096c217878 to your computer and use it in GitHub Desktop.
# 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
# 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
# To show the details of the current state
terraform show
# To list the created resources
terraform state list
# To show the output variables
terraform output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment