Interview Prep/Terraform/IaC and Terraform Fundamentals

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.

All Terraform questions Roadmap: Terraform

More on IaC and Terraform Fundamentals