hashicorp / terraform-plugin-framework

A next-generation framework for building Terraform providers.
https://developer.hashicorp.com/terraform/plugin/framework
Mozilla Public License 2.0
298 stars 92 forks source link

all: Add support for Manual Deferred Actions #999

Closed SBGoods closed 4 months ago

SBGoods commented 4 months ago

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

This PR implements manual deferred action support for ReadResource, ReadDataSource, ImportResourceState, and PlanResourceChange RPCs. It adds new resource.DeferredResponse and datasource.DeferredResponse structs so that providers can indicate a deferral to the Terraform client.

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

A follow up PR will implement automatic deferred action support for PROVIDER_CONFIG_UNKNOWN during the ConfigureProvider RPC.