terraform/command/views
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
..
json views/json: Fix diag crash with invalid highlight 2021-05-04 08:35:42 -04:00
apply.go command/views: Remove command-specific runningInAutomation 2021-05-10 10:50:05 -07:00
apply_test.go command/views: Remove command-specific runningInAutomation 2021-05-10 10:50:05 -07:00
hook_count.go cli: Migrate apply to command views 2021-02-22 11:47:40 -05:00
hook_count_test.go cli: Migrate apply to command views 2021-02-22 11:47:40 -05:00
hook_json.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
hook_json_test.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
hook_ui.go cli: Fix misapplied terminal colors on run logs 2021-02-16 15:05:22 -05:00
hook_ui_test.go cli: Fix misapplied terminal colors on run logs 2021-02-16 15:05:22 -05:00
json_view.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
json_view_test.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
operation.go command/views: Remove baseState argument from plan-rendering views 2021-05-10 09:25:30 -07:00
operation_test.go command/views: Remove baseState argument from plan-rendering views 2021-05-10 09:25:30 -07:00
output.go views: Fix missing source in diagnostic output 2021-02-26 16:43:03 -05:00
output_test.go views: Expand test coverage for views.Output 2021-02-16 08:48:31 -05:00
plan.go command/views: Show refresh-detected changes as part of a plan 2021-05-13 09:05:06 -07:00
plan_test.go command/views: Remove command-specific runningInAutomation 2021-05-10 10:50:05 -07:00
refresh.go command/views: Remove command-specific runningInAutomation 2021-05-10 10:50:05 -07:00
refresh_test.go command/views: Remove command-specific runningInAutomation 2021-05-10 10:50:05 -07:00
show.go command/views: Remove baseState argument from plan-rendering views 2021-05-10 09:25:30 -07:00
state_locker.go views: Fix missing source in diagnostic output 2021-02-26 16:43:03 -05:00
test.go command: Experimental "terraform test" command 2021-02-22 14:21:45 -08:00
test_test.go command: Experimental "terraform test" command 2021-02-22 14:21:45 -08:00
validate.go cli: Migrate validate command to views 2021-03-18 15:56:28 -04:00
validate_test.go cli: Migrate validate command to views 2021-03-18 15:56:28 -04:00
view.go command/views: Remove command-specific runningInAutomation 2021-05-10 10:50:05 -07:00