terraform/website/docs
Martin Atkins 400038eda4 command: "terraform apply" uses interactive confirmation by default
In the 0.10 release we added an opt-in mode where Terraform would prompt
interactively for confirmation during apply. We made this opt-in to give
those who wrap Terraform in automation some time to update their scripts
to explicitly opt out of this behavior where appropriate.

Here we switch the default so that a "terraform apply" with no arguments
will -- if it computes a non-empty diff -- display the diff and wait for
the user to type "yes" in similar vein to the "terraform destroy" command.

This makes the commonly-used "terraform apply" a safe workflow for
interactive use, so "terraform plan" is now mainly for use in automation
where a separate planning step is used. The apply command remains
non-interactive when given an explicit plan file.

The previous behavior -- though not recommended -- can be obtained by
explicitly setting the -auto-approve option on the apply command line,
and indeed that is how all of the tests are updated here so that they can
continue to run non-interactively.
2017-11-01 06:54:39 -07:00
..
backends website: refine the description of the azurerm backend 2017-10-27 17:26:37 -07:00
commands command: "terraform apply" uses interactive confirmation by default 2017-11-01 06:54:39 -07:00
configuration website: fix "contains" interpolation example 2017-10-17 07:25:09 -07:00
import website: dyn_record can now be imported 2017-10-26 12:03:24 -07:00
internals website: don't talk about graphs in the Getting Started guide 2017-09-11 11:09:11 -07:00
modules Update README guidelines for module registry (#16223) 2017-10-12 14:22:58 +01:00
plugins website: don't recommend "providers" block in CLI config 2017-09-29 14:03:09 -07:00
providers website: new filesystem layout for core/provider split 2017-06-13 11:25:32 -07:00
provisioners provisioner/chef: doc example of ssl_verify_mode 2017-10-24 14:47:42 -07:00
registry website: correct the version when Terraform Registry support was added 2017-09-19 09:54:45 -07:00
state website: new filesystem layout for core/provider split 2017-06-13 11:25:32 -07:00
index.html.markdown website: new filesystem layout for core/provider split 2017-06-13 11:25:32 -07:00