resource instance

One of the objects a resource block produces; a block with count or for_each has several, each with its own index or key.

In more detail

Terraform tracks each instance by its full address in state. If the item behind an index or key changes, Terraform sees a different object at that address and plans updates, replacements or deletions to match. Deciding what makes an instance the same object over time is the real choice between count and for_each.

Related terms

Taught in

References

Certification courses