-auto-approve

The option that makes apply or destroy skip the yes prompt and act immediately.

It removes the final human check, so an unread plan, including a destroy, runs straight away.

In more detail

Leave the prompt on when working by hand; it is the last chance to read the plan. Pipelines that apply a reviewed, saved plan file do not need it, because applying a saved plan never prompts.

Example

terraform apply -auto-approve

Related terms

Taught in

References

Certification courses