terraform/plans
Martin Atkins 3c8a4e6e05 command+backend/local: -refresh-only and drift detection
This is a light revamp of our plan output to make use of Terraform core's
new ability to report both the previous run state and the refreshed state,
allowing us to explicitly report changes made outside of Terraform.

Because whether a plan has "changes" or not is no longer such a
straightforward matter, this now merges views.Operation.Plan with
views.Operation.PlanNoChanges to produce a single function that knows how
to report all of the various permutations. This was also an opportunity
to fill some holes in our previous logic which caused it to produce some
confusing messages, including a new tailored message for when
"terraform destroy" detects that nothing needs to be destroyed.

This also allows users to request the refresh-only planning mode using a
new -refresh-only command line option. In that case, Terraform _only_
performs drift detection, and so applying a refresh-only plan only
involves writing a new state snapshot, without changing any real
infrastructure objects.
2021-05-13 09:05:06 -07:00
..
internal/planproto plans: Plan.Mode is now Plan.UIMode 2021-04-30 10:30:56 -07:00
objchange use new dynamic decoding behavior 2021-04-14 12:13:22 -04:00
planfile plans/planfile: Read state snapshots as part of reading a plan 2021-05-10 09:22:47 -07:00
action.go Version tools per Go convention under tools.go 2019-10-17 22:23:39 +02:00
action_string.go stringer: Regenerate files with latest version 2019-05-13 15:34:27 +01:00
changes.go plans: Track an optional extra "reason" for some planned actions 2021-04-29 17:50:46 -07:00
changes_src.go plans: Track an optional extra "reason" for some planned actions 2021-04-29 17:50:46 -07:00
changes_state.go plans: New package for in-memory plan models 2018-10-16 18:50:29 -07:00
changes_sync.go s/FullDestroy/IsFullDdestroy/ 2020-10-05 10:50:25 -04:00
doc.go plans: New package for in-memory plan models 2018-10-16 18:50:29 -07:00
dynamic_value.go Use UnmarkDeepWithPaths and MarkWithPaths 2020-09-10 11:04:17 -04:00
mode.go core: Generalize the idea of a "plan mode", vs just destroy flag 2021-04-27 08:23:54 -07:00
mode_string.go core: Generalize the idea of a "plan mode", vs just destroy flag 2021-04-27 08:23:54 -07:00
plan.go command+backend/local: -refresh-only and drift detection 2021-05-13 09:05:06 -07:00
plan_test.go don't render plan for module outputs 2020-11-17 09:31:18 -05:00
resourceinstancechangeactionreason_string.go plans: Track an optional extra "reason" for some planned actions 2021-04-29 17:50:46 -07:00