hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.82k stars 9.17k forks source link

[Enhancement]: integrate support for ReplaceTransitGatewayRoute #33293

Open NamanJain8 opened 1 year ago

NamanJain8 commented 1 year ago

Description

Transit Gateways lie around the top level of networking infrastructure. Slow updates can impact traffic severely and lead to business loss.

We have observed that sometimes the resource modification (that translates into destroy + create in terraform-provider-aws) takes longer than the individual hard-coded timeout of 2 minutes. https://github.com/hashicorp/terraform-provider-aws/blob/c7a6bfbe50f6741592ac57393f9cdc38f0696092/internal/service/ec2/wait.go#L1359-L1362

AWS SDK provides a ReplaceTransitGatewayRoute feature to help update this critical resource in-place. https://docs.aws.amazon.com/cli/latest/reference/ec2/replace-transit-gateway-route.html

Affected Resource(s) and/or Data Source(s)

aws_ec2_transit_gateway_route

Potential Terraform Configuration

Terraform configuration would not change. Instead of replace = destroy + create, provider code can translate that to a single replace call to AWS.

References

https://docs.aws.amazon.com/cli/latest/reference/ec2/replace-transit-gateway-route.html

Would you like to implement a fix?

None

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue