okta / terraform-provider-oktapam

Terraform Provider for Okta PAM
8 stars 4 forks source link

Combine SDKV2 and Framework Plugin Provider #125

Open sachinsaxena-okta opened 8 months ago

sachinsaxena-okta commented 8 months ago

This PR is to support adding resources built using new TF Plugin Framework.

SDKV2 used for tf plugin development is designed for maintaining tf plugins that are compatible with Plugin Protocol version 5. Plugins need to communicate with Terraform CLI, protocol version 5 is supported by CLI version 0.12 and later. Protocol version 6 support tf cli version 1.0 or later.

To start using new TF Plugin Framework(https://developer.hashicorp.com/terraform/plugin/framework) we have two options:

  1. Downgrade new plugin framework server to support protocol version 5
  2. Upgrade old SDKV2 provider server to support protocol version 6

If we go with Option 1, then will not be able to use some of the newer features like Nested Attributes

Going with option 2, will require upgrading tf cli version to 1.0+. I am going with option 2.