Contents


Terraform builds a dependency graph and uses it to perform operations, such as generate plans and refresh state

Graph Nodes

The following node types can exist within the graph:

  • Resource Node - Represents a single resource. If you have the count metaparameter set, then there will be one resource node for each count. The configuration, diff, state, etc. of the resource under change is attached to this node.

  • Provider Configuration Node - Represents the time to fully configure a provider. This is when the provider configuration block is given to a provider, such as AWS security credentials.

  • Resource Meta-Node - Represents a group of resources, but does not represent any action on its own. This is done for convenience on dependencies and making a prettier graph. This node is only present for resources that have a count parameter greater than 1.

Visualizing the Graph

When visualizing a configuration with terraform graph, you can see all of these nodes present.