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

Allow to wait until peering is complete in `aws_ec2_transit_gateway_peering_attachment` #26754

Open arein opened 2 years ago

arein commented 2 years ago

Community Note

Description

Currently I see creating EC2 Transit Gateway Route Table Association (tgw-rtb-0adce2d3feec543ec_tgw-attach-094dc7f1085117982): IncorrectState: tgw-attach-094dc7f1085117982 is in invalid state when initially creating the peering from resources depending on the peering.

That's because the peering has not yet been established (there is manual intervention required). Autoaccepting doesn't seem to work in my case (maybe I should research that).

However, indifferent of that it would be great to have a flag to instruct the resource to wait until the peering is complete.

New or Affected Resource(s)

mattwilder commented 8 months ago

An alternative solution to this problem is outlined in #36261