From a6de64a44545486d403d17bcbb4bdf791d42ca5e Mon Sep 17 00:00:00 2001 From: Krzysztof Wilczynski Date: Fri, 2 Sep 2016 21:28:55 +0100 Subject: [PATCH] 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 --- .../providers/aws/resource_aws_vpn_gateway_attachment.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/builtin/providers/aws/resource_aws_vpn_gateway_attachment.go b/builtin/providers/aws/resource_aws_vpn_gateway_attachment.go index b19393bfb..db0110000 100644 --- a/builtin/providers/aws/resource_aws_vpn_gateway_attachment.go +++ b/builtin/providers/aws/resource_aws_vpn_gateway_attachment.go @@ -59,9 +59,9 @@ func resourceAwsVpnGatewayAttachmentCreate(d *schema.ResourceData, meta interfac Pending: []string{"detached", "attaching"}, Target: []string{"attached"}, Refresh: vpnGatewayAttachmentStateRefresh(conn, vpcId, vgwId), - Timeout: 5 * time.Minute, + Timeout: 15 * time.Minute, Delay: 10 * time.Second, - MinTimeout: 3 * time.Second, + MinTimeout: 5 * time.Second, } _, err = stateConf.WaitForState() @@ -151,9 +151,9 @@ func resourceAwsVpnGatewayAttachmentDelete(d *schema.ResourceData, meta interfac Pending: []string{"attached", "detaching"}, Target: []string{"detached"}, Refresh: vpnGatewayAttachmentStateRefresh(conn, vpcId, vgwId), - Timeout: 5 * time.Minute, + Timeout: 15 * time.Minute, Delay: 10 * time.Second, - MinTimeout: 3 * time.Second, + MinTimeout: 5 * time.Second, } _, err = stateConf.WaitForState()