Skip to content

Commit

Permalink
r/resource_aws_internet_gateway: increase retries to match timeout
Browse files Browse the repository at this point in the history
This increases the not found checks to 90, which, delayed by 10 seconds,
match the total timeout of 15 minutes.

Fixes coreos/tectonic-installer#1017
  • Loading branch information
Sergiusz Urbaniak committed Sep 6, 2017
1 parent 9309350 commit c804536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/resource_aws_internet_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func resourceAwsInternetGatewayDetach(d *schema.ResourceData, meta interface{})
Refresh: detachIGStateRefreshFunc(conn, d.Id(), vpcID.(string)),
Timeout: 15 * time.Minute,
Delay: 10 * time.Second,
NotFoundChecks: 30,
NotFoundChecks: 90, // 90 retries * 10 * time.Second = 900 seconds = 15 minutes (which ~equals to the total Timeout above)
}
if _, err := stateConf.WaitForState(); err != nil {
return fmt.Errorf(
Expand Down

0 comments on commit c804536

Please sign in to comment.