DEV Community

Leo Liu
Leo Liu

Posted on

Terraform Learning Note - 1

Common Commands.

  • terraform init - initializing a configuration directory downloads and installs the providers defined in the configuration
  • terraform fmt - formatting the code in the current directory
  • terraform validate - validating the configuration in the current directory
  • terraform plan - printing out changes the current directory planning to perform
  • terraform apply - deploying changes stick with the configuration
  • terraform show - listing all the resources provisioned by using current directory
  • terraform state list - listing all current resources managed by this project
  • terraform destroy - terminating resources managed by the current terraform project

Top comments (0)