»Terraform Plugin SDKv2
Terraform Plugin SDKv2 is an established way to develop Terraform Plugins. It is the precursor to the Terraform Plugin Framework, which is still in early development.
Important: Which SDK Should I Use? explains the differences between the framework and SDKv2 to help you decide which option is right for your provider.
- Try the Call APIs with Custom Providers tutorials on HashiCorp Learn.
- Clone the terraform-provider-scaffolding template repository on GitHub.
- Schemas define available fields for provider, resource, or provisioner configuration block, and give Terraform metadata about those fields.
- Resources are an abstraction that allow Terraform to manage infrastructure objects, such as a compute instance, an access policy, or disk. Providers act as a translation layer between Terraform and an API, offering one or more resources for practitioners to define in a configuration.