opentofu/internal/command/views
kmoe dec48a8510
plans: indicate when resource deleted due to move (#31695)
Add a new ChangeReason, ReasonDeleteBecauseNoMoveTarget, to provide better
information in cases where a planned deletion is due to moving a resource to
a target not in configuration.

Consider a case in which a resource instance exists in state at address A, and
the user adds a moved block to move A to address B. Whether by the user's
intention or not, address B does not exist in configuration.
Terraform combines the move from A to B, and the lack of configuration for B,
into a single delete action for the (previously nonexistent) entity B.
Prior to this commit, the Terraform plan will report that resource B will be
destroyed because it does not exist in configuration, without explicitly
connecting this to the move.

This commit provides the user an additional clue as to what has happened, in a
case in which Terraform has elided a user's action and inaction into one
potentially destructive change.
2022-08-30 18:01:29 +01:00
..
json plans: indicate when resource deleted due to move (#31695) 2022-08-30 18:01:29 +01:00
testdata/show cli: Migrate show command to use command arguments and views 2022-01-13 11:00:03 -06:00
apply_test.go update to use typed sensitive marks 2021-06-25 12:49:07 -04:00
apply.go Move terraform/ to internal/terraform/ 2021-05-17 14:09:07 -07:00
hook_count_test.go Move terraform/ to internal/terraform/ 2021-05-17 14:09:07 -07:00
hook_count.go Move terraform/ to internal/terraform/ 2021-05-17 14:09:07 -07:00
hook_json_test.go test fixture race 2022-04-20 15:01:17 -04:00
hook_json.go core: Do everything except the actual action for plans.NoOp 2022-07-22 15:27:15 -07:00
hook_ui_test.go Move terraform/ to internal/terraform/ 2021-05-17 14:09:07 -07:00
hook_ui.go core: Do everything except the actual action for plans.NoOp 2022-07-22 15:27:15 -07:00
json_view_test.go json-output: Config-driven move support in JSON UI 2021-09-20 15:25:23 -04:00
json_view.go json-output: Release format version 1.0 2021-10-06 11:13:06 -04:00
operation_test.go track contributing instances 2022-03-17 09:35:36 -04:00
operation.go json-output: Config-driven move support in JSON UI 2021-09-20 15:25:23 -04:00
output_test.go Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
output.go de-linting 2021-09-01 11:36:21 -04:00
plan_test.go improve the contributing attributes filter 2022-03-30 10:04:48 -04:00
plan.go fix missing output for applyable refresh plans (#31469) 2022-08-09 16:03:59 +01:00
refresh_test.go update to use typed sensitive marks 2021-06-25 12:49:07 -04:00
refresh.go Move terraform/ to internal/terraform/ 2021-05-17 14:09:07 -07:00
show_test.go cli: Migrate show command to use command arguments and views 2022-01-13 11:00:03 -06:00
show.go cli: Migrate show command to use command arguments and views 2022-01-13 11:00:03 -06:00
state_locker.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
test_test.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
test.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
validate_test.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
validate.go json-output: Release format version 1.0 2021-10-06 11:13:06 -04:00
view.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00