Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 1.65 KB

COMMANDS.md

File metadata and controls

29 lines (15 loc) · 1.65 KB

Edu Terraform

Commands

In general you create a main.tf file, call init & apply. Done. Then destroy to remove everything again.

"The terraform init command initializes a working directory containing Terraform configuration files. This is the first command that should be run after writing a new Terraform configuration or cloning an existing one from version control."

"The terraform plan command creates an execution plan, which lets you preview the changes that Terraform plans to make to your infrastructure."

"The terraform fmt command is used to rewrite Terraform configuration files to a canonical format and style. This command applies a subset of the Terraform language style conventions, along with other minor adjustments for readability."

"The terraform validate command validates the configuration files in a directory, referring only to the configuration and not accessing any remote services such as remote state, provider APIs, etc."

"The terraform apply command executes the actions proposed in a Terraform plan."

"The terraform destroy command is a convenient way to destroy all remote objects managed by a particular Terraform configuration."