From cceced8c3aa92ebb469aed6bf1caa1dbf506ac59 Mon Sep 17 00:00:00 2001 From: jackofallops Date: Thu, 18 Nov 2021 15:40:41 +0000 Subject: [PATCH 1/2] extend context timeouts for create and delete --- .../key_vault_managed_hardware_security_module_resource..go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/services/keyvault/key_vault_managed_hardware_security_module_resource..go b/internal/services/keyvault/key_vault_managed_hardware_security_module_resource..go index 0534163aa287..a3981ce26c41 100644 --- a/internal/services/keyvault/key_vault_managed_hardware_security_module_resource..go +++ b/internal/services/keyvault/key_vault_managed_hardware_security_module_resource..go @@ -32,9 +32,9 @@ func resourceKeyVaultManagedHardwareSecurityModule() *pluginsdk.Resource { }), Timeouts: &pluginsdk.ResourceTimeout{ - Create: pluginsdk.DefaultTimeout(30 * time.Minute), + Create: pluginsdk.DefaultTimeout(60 * time.Minute), Read: pluginsdk.DefaultTimeout(5 * time.Minute), - Delete: pluginsdk.DefaultTimeout(30 * time.Minute), + Delete: pluginsdk.DefaultTimeout(60 * time.Minute), }, Schema: map[string]*pluginsdk.Schema{ From b5a7e74619575935a0be794d35e9bb0f79cb4536 Mon Sep 17 00:00:00 2001 From: jackofallops Date: Thu, 18 Nov 2021 15:43:30 +0000 Subject: [PATCH 2/2] update docs to reflect change to resource --- .../key_vault_managed_hardware_security_module.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/r/key_vault_managed_hardware_security_module.html.markdown b/website/docs/r/key_vault_managed_hardware_security_module.html.markdown index 12b84bc98cbf..3c072881827e 100644 --- a/website/docs/r/key_vault_managed_hardware_security_module.html.markdown +++ b/website/docs/r/key_vault_managed_hardware_security_module.html.markdown @@ -71,9 +71,9 @@ The following attributes are exported: The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/docs/configuration/resources.html#timeouts) for certain actions: -* `create` - (Defaults to 30 minutes) Used when creating the Key Vault Managed Hardware Security Module. +* `create` - (Defaults to 60 minutes) Used when creating the Key Vault Managed Hardware Security Module. * `read` - (Defaults to 5 minutes) Used when retrieving the Key Vault Managed Hardware Security Module. -* `delete` - (Defaults to 30 minutes) Used when deleting the Key Vault Managed Hardware Security Module. +* `delete` - (Defaults to 60 minutes) Used when deleting the Key Vault Managed Hardware Security Module. ## Import