aws_vpn_gateway_route_propagation resource is created with success and no terraform issue
Actual Behavior
VPG (vgw-04a133c73ebb529e4) is being added to the route table (rtb-040531274fcea3cbd) as route propagated gateway, but terraform throws error. This happens randomly. For the presented use-case, it happened only for one out of 4 route tables.
When re-running terraform, the resource is marked as tainted and is being recreated with success:
# module.network_us1.aws_vpn_gateway_route_propagation.private["us-east-2a"] is tainted, so must be replaced
-/+ resource "aws_vpn_gateway_route_propagation" "private" {
~ id = "vgw-04a133c73ebb529e4_rtb-040531274fcea3cbd" -> (known after apply)
# (2 unchanged attributes hidden)
}
Relevant Error/Panic Output Snippet
│ Error: reading Route Table (rtb-040531274fcea3cbd) VPN Gateway (vgw-04a133c73ebb529e4) route propagation: couldn't find resource
│
│ with module.network_us1.aws_vpn_gateway_route_propagation.private["us-east-2a"],
│ on ../../modules/network/ipsec.tf line 13, in resource "aws_vpn_gateway_route_propagation" "private":
│ 13: resource "aws_vpn_gateway_route_propagation" "private" {
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.3.9
AWS Provider Version
4.56.0
Affected Resource(s)
aws_vpn_gateway_route_propagation
Expected Behavior
aws_vpn_gateway_route_propagation resource is created with success and no terraform issue
Actual Behavior
VPG (vgw-04a133c73ebb529e4) is being added to the route table (rtb-040531274fcea3cbd) as route propagated gateway, but terraform throws error. This happens randomly. For the presented use-case, it happened only for one out of 4 route tables.
When re-running terraform, the resource is marked as tainted and is being recreated with success:
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
terraform apply
> issue occurs randomlyterraform apply
> resource is masked as tainted, apply worksDebug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No