mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Fix. Adjust create and destroy timeout in aws_vpn_gateway_attachment.
This commit increases the timeout, delay and minimum timeout values in order to resolve a timeout potentially occurring when the VPC gateway is being attached. Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
This commit is contained in:
parent
afd17e166d
commit
a6de64a445
@ -59,9 +59,9 @@ func resourceAwsVpnGatewayAttachmentCreate(d *schema.ResourceData, meta interfac
|
|||||||
Pending: []string{"detached", "attaching"},
|
Pending: []string{"detached", "attaching"},
|
||||||
Target: []string{"attached"},
|
Target: []string{"attached"},
|
||||||
Refresh: vpnGatewayAttachmentStateRefresh(conn, vpcId, vgwId),
|
Refresh: vpnGatewayAttachmentStateRefresh(conn, vpcId, vgwId),
|
||||||
Timeout: 5 * time.Minute,
|
Timeout: 15 * time.Minute,
|
||||||
Delay: 10 * time.Second,
|
Delay: 10 * time.Second,
|
||||||
MinTimeout: 3 * time.Second,
|
MinTimeout: 5 * time.Second,
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = stateConf.WaitForState()
|
_, err = stateConf.WaitForState()
|
||||||
@ -151,9 +151,9 @@ func resourceAwsVpnGatewayAttachmentDelete(d *schema.ResourceData, meta interfac
|
|||||||
Pending: []string{"attached", "detaching"},
|
Pending: []string{"attached", "detaching"},
|
||||||
Target: []string{"detached"},
|
Target: []string{"detached"},
|
||||||
Refresh: vpnGatewayAttachmentStateRefresh(conn, vpcId, vgwId),
|
Refresh: vpnGatewayAttachmentStateRefresh(conn, vpcId, vgwId),
|
||||||
Timeout: 5 * time.Minute,
|
Timeout: 15 * time.Minute,
|
||||||
Delay: 10 * time.Second,
|
Delay: 10 * time.Second,
|
||||||
MinTimeout: 3 * time.Second,
|
MinTimeout: 5 * time.Second,
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = stateConf.WaitForState()
|
_, err = stateConf.WaitForState()
|
||||||
|
Loading…
Reference in New Issue
Block a user