From 6532e2e95170b9a0fd45c7fbb9ce96d3a41c9c8a Mon Sep 17 00:00:00 2001 From: Kit Ewbank Date: Fri, 12 Feb 2021 14:28:45 -0500 Subject: [PATCH] r/aws_ec2_transit_gateway: Increase deletion IncorrectState retry to 5 minutes. --- aws/resource_aws_ec2_transit_gateway.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws/resource_aws_ec2_transit_gateway.go b/aws/resource_aws_ec2_transit_gateway.go index 77fc51c2cc7..681a7d558bd 100644 --- a/aws/resource_aws_ec2_transit_gateway.go +++ b/aws/resource_aws_ec2_transit_gateway.go @@ -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") {