Terraform CLI Cheat Sheet/Apply without prompt

Skip interactive approval prompt.

Section: Plan and Apply

Apply without prompt

bash
bash
terraform apply -auto-approve
Explanation

Skip interactive approval prompt.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Plan and Apply
Apply changes
Create or update infrastructure after approval.
OpenIn sheetbashsame section
Apply saved plan
Apply exactly the actions saved in a plan file.
OpenIn sheetbashsame section
Destroy without prompt
Destroy infrastructure without approval prompt.
OpenIn sheetbashsame section
Create execution plan
Show the actions Terraform would take to reach the desired state.
OpenIn sheetbashsame section
Save plan to file
Write the generated plan to a file for later apply.
OpenIn sheetbashsame section
Plan with variable
Set an input variable directly on the command line.
OpenIn sheetbashsame section