terraform/backend
Martin Atkins a43b7df282 core: Handle forced-create_before_destroy during the plan walk
Previously we used a single plan action "Replace" to represent both the
destroy-before-create and the create-before-destroy variants of replacing.
However, this forces the apply graph builder to jump through a lot of
hoops to figure out which nodes need it forced on and rebuild parts of
the graph to represent that.

If we instead decide between these two cases at plan time, the actual
determination of it is more straightforward because each resource is
represented by only one node in the plan graph, and then we can ensure
we put the right nodes in the graph during DiffTransformer and thus avoid
the logic for dealing with deposed instances being spread across various
different transformers and node types.

As a nice side-effect, this also allows us to show the difference between
destroy-then-create and create-then-destroy in the rendered diff in the
CLI, although this change doesn't fully implement that yet.
2018-10-16 19:14:11 -07:00
..
atlas terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07:00
init backend: Update interface and implementations for new config loader 2018-10-16 18:39:12 -07:00
legacy remove legacy remote state code 2018-10-16 18:24:10 -07:00
local core: Handle forced-create_before_destroy during the plan walk 2018-10-16 19:14:11 -07:00
remote Make sure we also output policies while planning 2018-10-16 17:16:28 +02:00
remote-state terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07:00
backend.go terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07:00
cli.go backend: Update interface and implementations for new config loader 2018-10-16 18:39:12 -07:00
nil.go terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07:00
nil_test.go backend: introduce the backend set of interfaces 2017-01-26 14:33:49 -08:00
operation_type.go backend: introduce the backend set of interfaces 2017-01-26 14:33:49 -08:00
operationtype_string.go Update various files for new version of "stringer" 2017-12-11 13:26:29 -08:00
testing.go terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07:00
unparsed_value.go terraform: ugly huge change to weave in new HCL2-oriented types 2018-10-16 18:46:46 -07:00