Search⌘ K
AI Features

Auto Apply

Understand how to use Terraform's -auto-approve flag to skip manual confirmations when applying infrastructure changes. Learn the differences between auto apply and applying explicit plans, including potential risks, and why using plan files is safer for deployment pipelines.

We'll cover the following...

Auto apply

It is possible to skip the Terraform plan confirmation in a different way. You can use the -auto-approve flag.

Let’s test this out using the same Terraform code to run the command terraform apply -auto-approve. Terraform will create the AWS SQS queue without stopping to ask you to confirm.

Terminal 1
Terminal
Loading...
...