Skill 3.5.1
Applying with and without a saved plan
Key Concepts
Run without arguments, terraform apply refreshes state, creates a new plan, shows it and waits for the user to type yes. -auto-approve skips the prompt and is only appropriate in automation where the plan has been reviewed some other way. Apply accepts the same planning options as plan, such as -var, -replace and -target.
Run with a plan file, terraform apply tfplan applies exactly the saved actions without a prompt. If the state has changed since the plan was created, for example because another apply ran, Terraform rejects the plan as stale, and you must plan again.