Skip to content

Commit

Permalink
Bump timeout for subnet delete from 10 to 20 mins
Browse files Browse the repository at this point in the history
We've seen subnet deletion failures that we think we can trace to ENIs
left behind by NLB. We don't have permission to detach or delete those
ENIs, so our only recourse is to wait longer.

Both the state change timeout and the overall resource timeout is
increased.
  • Loading branch information
jen20 committed Nov 1, 2018
1 parent 5ec1781 commit 5da15f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws/resource_aws_subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func resourceAwsSubnet() *schema.Resource {

Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(10 * time.Minute),
Delete: schema.DefaultTimeout(10 * time.Minute),
Delete: schema.DefaultTimeout(20 * time.Minute),
},

SchemaVersion: 1,
Expand Down Expand Up @@ -320,7 +320,7 @@ func resourceAwsSubnetDelete(d *schema.ResourceData, meta interface{}) error {
wait := resource.StateChangeConf{
Pending: []string{"pending"},
Target: []string{"destroyed"},
Timeout: 10 * time.Minute,
Timeout: 20 * time.Minute,
MinTimeout: 1 * time.Second,
Refresh: func() (interface{}, string, error) {
_, err := conn.DeleteSubnet(req)
Expand Down

0 comments on commit 5da15f8

Please sign in to comment.