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:
Krzysztof Wilczynski 2016-09-02 21:28:55 +01:00
parent afd17e166d
commit a6de64a445
No known key found for this signature in database
GPG Key ID: B89F6447B63419A6
1 changed files with 4 additions and 4 deletions

View File

@ -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()