mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-07 22:53:08 -06:00
provider/azurerm: Make ARM template timeout 40m
Template deployments with multiple extensions can last more than 10 minutes. Fixing that by increasing the timeout to 40 minutes.
This commit is contained in:
parent
6c2b78cdef
commit
ae38ef2e01
@ -110,7 +110,7 @@ func resourceArmTemplateDeploymentCreate(d *schema.ResourceData, meta interface{
|
|||||||
Pending: []string{"creating", "updating", "accepted", "running"},
|
Pending: []string{"creating", "updating", "accepted", "running"},
|
||||||
Target: []string{"succeeded"},
|
Target: []string{"succeeded"},
|
||||||
Refresh: templateDeploymentStateRefreshFunc(client, resGroup, name),
|
Refresh: templateDeploymentStateRefreshFunc(client, resGroup, name),
|
||||||
Timeout: 10 * time.Minute,
|
Timeout: 40 * time.Minute,
|
||||||
}
|
}
|
||||||
if _, err := stateConf.WaitForState(); err != nil {
|
if _, err := stateConf.WaitForState(); err != nil {
|
||||||
return fmt.Errorf("Error waiting for Template Deployment (%s) to become available: %s", name, err)
|
return fmt.Errorf("Error waiting for Template Deployment (%s) to become available: %s", name, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user