Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Error: reading Route in Route Table (xxxx) with destination (xxxx): couldn't find resource #31679

Closed
TaysirTayyab opened this issue May 31, 2023 · 3 comments · Fixed by #32196
Labels
bug Addresses a defect in current functionality. eventual-consistency Pertains to eventual consistency issues. service/vpc Issues and PRs that pertain to the vpc service.
Milestone

Comments

@TaysirTayyab
Copy link

Terraform Core Version

1.3.2

AWS Provider Version

4.63.0

Affected Resource(s)

  • aws_route

Expected Behavior

Creating route should succeed. If there are failures when trying to read newly created route, they should be retried.

Actual Behavior

When attempting to verify the newly created route, it is not found and an error is returned rather then retry to find the new resource.

Relevant Error/Panic Output Snippet

module.infra.module.app_with_media_subnets["xxx"].module.peer_between_app_and_ingress[0].aws_route.route_vpc_2_to_vpc1[9]: Creating...

[snip]

module.infra.aws_route53_record.non_media_apps["xxx"]: Still creating... [50s elapsed]
module.infra.aws_route53_record.non_media_apps["xxx"]: Creation complete after 51s [id=xxxx]

[snip]

Error: reading Route in Route Table (xxxx) with destination (xxxx): couldn't find resource

  with module.infra.module.app_with_media_subnets["xxx"].module.peer_between_app_and_ingress[0].aws_route.route_vpc_2_to_vpc1[9],
  on .terraform/modules/blah/blah/main.tf line 36, in resource "aws_route" "route_vpc_2_to_vpc1":
  36: resource "aws_route" "route_vpc_2_to_vpc1" {

Terraform Configuration Files

resource "aws_route" "transit_gateway_routes" {
  for_each               = var.transit_gateway_routes
  route_table_id         = aws_route_table.route_table.id
  destination_cidr_block = each.key
  transit_gateway_id     = each.value

  provisioner "local-exec" {
    command = "sleep 10"
  }
}

Steps to Reproduce

Not easily reproduced as it depends on the AWS backend.

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

Seems very similar to #25791

Seems slightly similar to #22927

Would you like to implement a fix?

None

@TaysirTayyab TaysirTayyab added bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. labels May 31, 2023
@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • 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.

@github-actions github-actions bot added the service/vpc Issues and PRs that pertain to the vpc service. label May 31, 2023
@justinretzolk justinretzolk added eventual-consistency Pertains to eventual consistency issues. and removed needs-triage Waiting for first response or review from a maintainer. labels May 31, 2023
@github-actions github-actions bot added this to the v5.6.0 milestone Jun 26, 2023
@github-actions
Copy link

This functionality has been released in v5.6.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. eventual-consistency Pertains to eventual consistency issues. service/vpc Issues and PRs that pertain to the vpc service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants