terraform/internal/command/views/json
kmoe a718f70f85
Add removed block (#34251)
* terraform: remove redundant code

NodeDestroyResourceInstance is never instantiated with a DeposedKey of anything other than states.NotDeposed, so the deleted code is never run. Deposed objects get a NodeDestroyDeposedResourceInstanceObject instead.

* tfdiags: add helper func

* configs: introduce removed block type

* terraform: add forget action

* renderer: render forget actions

* terraform: deposed objects can be forgotten

Deposed objects encountered during planning spawn
NodePlanDeposedResourceInstanceObject, which previously generated a
destroy change. Now it will generate a forget change if the deposed
object is a forget target, and a destroy change otherwise.

The apply graph gains a new node type,
NodeForgetDeposedResourceInstanceObject, whose execution simply removes
the object from the state.

* configs: add RemoveTarget address type

* terraform: modules can be forgotten

* terraform: error if removed obj still in config

* tests: better error on restore state fail

* Update CHANGELOG.md
2023-11-29 11:58:28 +00:00
..
testdata/diagnostic tfdiags: Treat unknown-related or sensitive-related messages differently 2022-06-23 13:52:23 -07:00
change.go Add removed block (#34251) 2023-11-29 11:58:28 +00:00
change_summary.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
diagnostic.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
diagnostic_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
function.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
function_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
hook.go Add removed block (#34251) 2023-11-29 11:58:28 +00:00
importing.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
message_types.go Implement TFC integration for private module registry test runs (#33710) 2023-09-14 09:01:25 +02:00
output.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
output_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
resource_addr.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
test.go Test framework will produce regular updates in -json mode (#33953) 2023-10-02 09:14:20 +02:00