terraform/states
Martin Atkins ce69c3903f command/views: Show refresh-detected changes as part of a plan
We've always had a mechanism to synchronize the Terraform state with
remote objects before creating a plan, but we previously kept the result
of that to ourselves, and so it would sometimes lead to Terraform
generating a planned action to undo some upstream drift, but Terraform
would give no context as to why that action was planned even though the
relevant part of the configuration hadn't changed.

Now we'll detect any differences between the previous run state and the
refreshed state and, if any managed resources now look different, show
an additional note about it as extra context for the planned changes that
follow.

This appears as an optional extra block of information before the normal
plan output. It'll appear the same way in all of the contexts where we
render plans, including "terraform show" for saved plans.
2021-05-13 09:05:06 -07:00
..
remote remove unused 2020-12-02 13:59:18 -05:00
statefile Correct the spelling of heirarchy/hierarchy throughout 2021-02-05 15:07:04 +00:00
statemgr states/statemgr: staticcheck 2020-12-02 13:59:19 -05:00
doc.go
instance_generation.go remove unused 2020-12-02 13:59:18 -05:00
instance_object.go Update ordering for marking/unmarking and asserting plan valid 2020-10-02 13:03:11 -04:00
instance_object_src.go Store sensitive attribute paths in state (#26338) 2020-09-24 12:40:17 -04:00
module.go Update some comments in states package 2020-10-07 10:57:25 -04:00
objectstatus_string.go stringer: Regenerate files with latest version 2019-05-13 15:34:27 +01:00
output_value.go add AbsOutputAddrs to state outputs 2020-04-13 16:37:59 -04:00
resource.go remove unused 2020-12-02 13:59:18 -05:00
resource_test.go states: Fix TestResourceInstanceDeposeCurrentObject 2018-10-16 19:14:11 -07:00
state.go Add ModuleOutputs method to states 2020-04-13 17:59:09 -04:00
state_deepcopy.go fix ResourceInstanceObject.DeepCopy 2021-03-25 17:39:53 -04:00
state_equal.go command/views: Show refresh-detected changes as part of a plan 2021-05-13 09:05:06 -07:00
state_string.go remove unused 2020-12-02 13:59:18 -05:00
state_test.go fix ResourceInstanceObject.DeepCopy 2021-03-25 17:39:53 -04:00
sync.go Update some comments in states package 2020-10-07 10:57:25 -04:00