Terraform Commands

Terraform Commands #

Initialize #

Initialize a terraform repository from within the Terraform directory.

terraform init

This creates a .terraform/ directory, which tracks the Terraform state.

Plan #

Get a sense of what resources would be deployed.

terraform plan

Deploy #

terraform apply