mirror of https://github.com/hashicorp/terraform
Only the count and for_each expressions are evaluated by this node type, so it doesn't need to declare dependencies for any other refs in the configuration body. Using this more refined set of dependencies means we can avoid graph cycles in the case where one instance of a resource refers to another instance of the same resource. We'll still get cycles if count or for_each self-reference, but that's forbidden anyway (caught during validate) and makes sense because those two are whole-resource-level config rather than per-instance config.pull/18800/merge
parent
dadde5e9c2
commit
8a21825461
Loading…
Reference in new issue