The CRUD actions in resources migrated to Terraform Plugin Framework do not timeout after 20 minutes by default like they did previously when the resource was implemented with SDK v2. Are there any default timeouts in the plugin framework? The migration guide on timeouts does not mention that provider code should handle these timeouts after migrating, but I could not find listing of default timeouts (like there is in SDK v2 docs) either.
Hi @kangasta ,
Sorry that you’re running into trouble here. The Terraform Plugin Framework does not have a default timeout that is automatically set by the SDK like in the SDKv2. Provider developers would have to explicitly set the default timeout value in the Framework. If you would like the preserve the timeout behavior of the SDKv2 during migration, you would need to use the CRUD helper methods in the terraform-plugin-framework-timeouts
module to set a default timeout, when retrieving the configured timeout value, which is shown in Accessing Timeouts in CRUD Functions.
I realize that our migration documentation isn’t clear about the need to set a default timeout when migrating to the Framework, so I will work to on getting the documentation updated to explicitly state that. Thank you for reporting this issue!
Thanks for the quick clarification! We’ll look into the terraform-plugin-framework-timeouts
module.