How does Terraform work internally?
AdvancedConceptIaC and Terraform Fundamentals
Answer
Terraform Core reads the configuration and state, builds a dependency graph of resources, and walks it in parallel. For each resource it calls a provider plugin, a separate binary that talks to Core over gRPC and translates CRUD operations into API calls. Core never knows how to create an EC2 instance; the AWS provider does. That split is why providers version independently of Terraform.
More on IaC and Terraform Fundamentals
What is Infrastructure as Code and why do teams use it?BeginnerWhat is the difference between declarative and imperative infrastructure tools?BeginnerWhat is Terraform and what problem does it solve?BeginnerWhat is HCL and can Terraform use anything else?BeginnerWhich files make up a typical Terraform root module?BeginnerWhat is a provider in Terraform?Beginner