terraform/website/docs
Martin Atkins b802237e03 plans: Track an optional extra "reason" for some planned actions
Previously we were repeating some logic in the UI layer in order to
recover relevant additional context about a change to report to a user.
In order to help keep things consistent, and to have a clearer path for
adding more such things in the future, here we capture this user-facing
idea of an "action reason" within the plan model, and then use that
directly in order to decide how to describe the change to the user.

For the moment the "tainted" situation is the only one that gets a special
message, matching what we had before, but we can expand on this in future
in order to give better feedback about the other replace situations too.

This also preemptively includes the "replacing by request" reason, which
is currently not reachable but will be used in the near future as part of
implementing the -replace=... plan command line option to allow forcing
a particular object to be replaced.

So far we don't have any special reasons for anything other than replacing,
which makes sense because replacing is the only one that is in a sense
a special case of another action (Update), but this could expand to
other kinds of reasons in the future, such as explaining which of the
few different reasons a data source read might be deferred until the
apply step.
2021-04-29 17:50:46 -07:00
..
cli docs: small update for provider binary locations (#28413) 2021-04-19 09:04:46 -04:00
configuration lang/funcs: add (console-only) TypeFunction (#28501) 2021-04-23 10:29:50 -04:00
configuration-0-11 website: CLI: Update links to moved docs pages 2021-01-22 12:22:21 -08:00
internals plans: Track an optional extra "reason" for some planned actions 2021-04-29 17:50:46 -07:00
language Add config_paths and drop KUBECONFIG env variable in kubernetes backend (#26997) 2021-04-20 10:05:45 -04:00
providers website: Remove links to legacy provider docs for GitHub, ksyun 2021-01-22 12:51:35 -08:00