hashicorp / terraform-plugin-sdk

Terraform Plugin SDK enables building plugins (providers) to manage any service providers or custom in-house solutions
https://developer.hashicorp.com/terraform/plugin
Mozilla Public License 2.0
425 stars 230 forks source link

all: Add automatic deferred action support for unknown provider configuration #1335

Closed austinvalle closed 1 month ago

austinvalle commented 2 months ago

Ref: https://github.com/hashicorp/terraform-plugin-go/pull/403

This PR implements deferred action support for PROVIDER_CONFIG_UNKNOWN during the ConfigureProvider RPC. This functionality will allow a provider to defer all resources and data sources associated with the SDKv2 provider during the ReadResource, ReadDataSource, ImportResourceState, and PlanResourceChange RPCs.

Deferred actions is an experimental feature introduced in Terraform v1.9.0-alpha20240404 and is only available in experimental Terraform builds.

More granular deferred action support will be available in terraform-plugin-framework.