skip to content
Alvin Lucillo

Terraform out arg

/ 1 min read

💻 Tech

Using the same plan file for the plan and apply command ensures consistency with the expected changes to be applied. If you didn’t specify it on the apply command, it command will generate its own plan file, which can introduce new changes if there are infrastructure changes in the meantime. The best practice is to always specify the generated plan file to the apply command.

terraform plan -out=tfplan
terraform apply tfplan