We recommend using the framework to develop new providers because it offers significant advantages as compared to Terraform Plugin SDKv2. We also recommend migrating existing providers to the framework when possible. Refer to Plugin Framework Benefits for higher level details about how the framework makes provider development easier and Plugin Framework Features for a detailed functionality comparison between the SDKv2 and the framework.
@bpmct They may probably deprecate the sdk v2 anytime.
SDKv2 is the prior SDK that many existing providers use. It is maintained for Terraform versions 1.x and earlier, but we have stopped most feature development so we can focus on improving the framework.
Terraform recommends migrating to Terraform Plugins Framework as it provides some benefits over the SDKv2.
Docs
Terraform Plugin Framework Develop Terraform providers using the recommended plugin framework.
The plugin framework is HashiCorp’s recommended way develop Terraform Plugins on protocol version 6 or protocol version 5.
We recommend using the framework to develop new providers because it offers significant advantages as compared to Terraform Plugin SDKv2. We also recommend migrating existing providers to the framework when possible. Refer to Plugin Framework Benefits for higher level details about how the framework makes provider development easier and Plugin Framework Features for a detailed functionality comparison between the SDKv2 and the framework.
Get Started
Try the Terraform Plugin Framework tutorials. Clone the terraform-provider-scaffolding-framework template repository on GitHub.
Migration steps
Take the following steps when you migrate a provider from SDKv2 to the Framework:
Depends on #222