Update docs to clarify cross-type moves (#34950)

* Update docs to clarify cross-type moves

* Apply suggestions from code review

Co-authored-by: Brian McClain <brianmmcclain@gmail.com>

---------

Co-authored-by: Brian McClain <brianmmcclain@gmail.com>
pull/34947/head
Liam Cervante 2 years ago committed by GitHub
parent 28797e7938
commit 81555f5bb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -103,11 +103,13 @@ so Terraform recognizes the move for all instances of the resource. That is,
it covers both `aws_instance.a[0]` and `aws_instance.a[1]` without the need
to identify each one separately.
Each resource type has a separate schema and so objects of different types
are not compatible. Therefore, although you can use `moved` to change the name
of a resource, you _cannot_ use `moved` to change to a different resource type
or to change a managed resource (a `resource` block) into a data resource
(a `data` block).
Each resource type has a separate schema so objects of different types
are not typically compatible. You can always use the `moved` block to change
the name of a resource, but some providers also let you change an object from
one resource type to another. Refer to the provider documentation for details
on which resources can move between types. You _cannot_ use the `moved`
block to change a managed resource (a `resource` block) into a data
resource (a `data` block).
## Enabling `count` or `for_each` For a Resource

Loading…
Cancel
Save