Ephemeral suppurt in SDK

Is it possible to create ephemeral resources with the Terraform SDK, or is it supported only with Terraform Framework?

Hi @haims :wave:,

Ephemeral resources are only supported in terraform-plugin-framework and we don’t have any plans to bring that support to terraform-plugin-sdk/v2 at the moment.

If your provider is currently implemented solely in SDKv2, you can mux it with a terraform-plugin-framework implementation and develop an ephemeral resource without having to migrate any resources over (as ephemeral resources are a net-new feature): Plugin Development - Combining and Translating Providers: Overview | Terraform | HashiCorp Developer

All of the major CSP providers are muxed, since they have both framework and SDKv2 features: terraform-provider-aws/internal/provider/factory.go at 81fb49e1fe6fcc332b272b03801a6264658bf05a · hashicorp/terraform-provider-aws · GitHub

1 Like