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.
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?BeginnerHow does Terraform work internally?Advanced