...

/

Generate and Review Execution Plan for Terraform

Generate and Review Execution Plan for Terraform

Learn how to generate and review the execution plan for Terraform.

Purpose of the terraform plan command

The terraform plan command is used to create an execution plan. Terraform performs a syntax validation of the current configuration, a refresh of state based on the actual environment, and, a comparison of the state against the contents of the configuration.

What happens after running the terraform plan command?

Running the terraform plan command doesn’t alter the actual environment. It may alter the state during the refresh process if it finds that a managed resource has changed since the previous refresh. Running terraform plan shows us whether changes are necessary to align the ...