Interview Prep/Real-World Interview/Terraform and Ansible

`terraform plan` vs `apply` vs `refresh`?

IntermediateConceptTerraform and Ansible
Answer

plan shows the changes. apply executes them. Refresh updates state from the real world; the standalone command is deprecated, so use terraform apply -refresh-only.

All Real-World Interview questions Roadmap: Interview readiness

More on Terraform and Ansible