hashicorp/terraform-website

docs/extend/resources/retries-and-customizable-timeouts.html: Update to explain nuance when using SDK v2 Context CRUD functions

CyrusJavan opened this issue · 3 comments

I think this page should be updated to reflect the nuance of using the v2 SDK with Context aware CRUD functions. With Context CRUDs, there is already a default 20 minute timeout so the setting for resource.StateChangeConf.Timeout will not be respected if it is greater than 20 minutes. You can see this confusion in the wild here (vultr/terraform-provider-vultr#159) where a provider developer thought their resource.StateChangeConf.Timeout of 60 minutes was being respected, but actually the 20 minute timeout would always be hit first.

bflad commented

Excellent suggestion. Real briefly -- two additional options in this case:

Hi All, I'm going to mark this as "Backlog" for now until it can be planned in. I know it's been added to the engineering backlog. Just wanted to provide this update and let you know why I'm adding the label. We can follow up here and close out this ticket once it's been addressed. Thank you!

bflad commented

Hi @CyrusJavan 👋 Thank you for raising this. Updates have been posted to https://www.terraform.io/docs/extend/resources/retries-and-customizable-timeouts.html which should now clarify the default behaviors across the CRUD functions and offer more appropriate recommendations. Please reach out if there is anything else!