Interview Prep/Terraform/IaC and Terraform Fundamentals

How do provider plugins implement a resource, and what are SDKv2 and the Plugin Framework?

AdvancedConceptIaC and Terraform Fundamentals
Answer

A provider registers a schema per resource and implements create, read, update and delete functions. Terraform Core sends a prior state, proposed new state and config; the provider returns the planned and applied state. SDKv2 is the older Go SDK; the Plugin Framework is the current one with better support for null, unknown values and nested attributes. Both speak the same plugin protocol (v5 or v6), so Core is agnostic.

All Terraform questions Roadmap: Terraform

More on IaC and Terraform Fundamentals