Skip to content

Commit

Permalink
r/aws_ec2_transit_gateway: Increase deletion IncorrectState retry to …
Browse files Browse the repository at this point in the history
…5 minutes.
  • Loading branch information
ewbankkit committed Feb 12, 2021
1 parent 81dd318 commit 6532e2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/resource_aws_ec2_transit_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func resourceAwsEc2TransitGatewayDelete(d *schema.ResourceData, meta interface{}
}

log.Printf("[DEBUG] Deleting EC2 Transit Gateway (%s): %s", d.Id(), input)
err := resource.Retry(2*time.Minute, func() *resource.RetryError {
err := resource.Retry(5*time.Minute, func() *resource.RetryError {
_, err := conn.DeleteTransitGateway(input)

if isAWSErr(err, "IncorrectState", "has non-deleted Transit Gateway Attachments") {
Expand Down

0 comments on commit 6532e2e

Please sign in to comment.