terraform/internal/refactoring
Alisdair McDiarmid d7ef123c12 refactoring: Move nested modules
When applying module `moved` statements by iterating through modules in
state, we previously required an exact match from the `moved`
statement's `from` field and the module address. This permitted moving
resources directly inside a module, but did not recur into module calls
within those moved modules.

This commit moves that exact match requirement so that it only applies
to `moved` statements targeting resources. In turn this allows nested
modules to be moved.
2021-12-21 16:25:06 -05:00
..
testdata add failing test for resource type mismatch 2021-11-15 11:05:33 +00:00
move_execute.go refactoring: Move nested modules 2021-12-21 16:25:06 -05:00
move_execute_test.go refactoring: Move nested modules 2021-12-21 16:25:06 -05:00
move_statement.go refactoring: Don't implicitly move for resources with for_each 2021-09-23 14:37:08 -07:00
move_statement_test.go experiments: config_driven_move has concluded 2021-11-01 08:46:15 -07:00
move_validate.go add AffectedAbsResource to interface 2021-11-16 18:19:11 +00:00
move_validate_test.go add failing test for resource type mismatch 2021-11-15 11:05:33 +00:00