provider/aws: Raise timeout for attaching/detaching VPN GW (#13457)

This commit is contained in:
Radek Simko 2017-04-07 12:30:30 +01:00 committed by GitHub
parent 0010a14f75
commit a4768eb9f9
1 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@ func resourceAwsVpnGatewayAttach(d *schema.ResourceData, meta interface{}) error
Pending: []string{"detached", "attaching"},
Target: []string{"attached"},
Refresh: vpnGatewayAttachStateRefreshFunc(conn, d.Id(), "available"),
Timeout: 1 * time.Minute,
Timeout: 5 * time.Minute,
}
if _, err := stateConf.WaitForState(); err != nil {
return fmt.Errorf(
@ -266,7 +266,7 @@ func resourceAwsVpnGatewayDetach(d *schema.ResourceData, meta interface{}) error
Pending: []string{"attached", "detaching", "available"},
Target: []string{"detached"},
Refresh: vpnGatewayAttachStateRefreshFunc(conn, d.Id(), "detached"),
Timeout: 1 * time.Minute,
Timeout: 5 * time.Minute,
}
if _, err := stateConf.WaitForState(); err != nil {
return fmt.Errorf(