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

Error: error reading Route Table (rtb-xxx): couldn't find resource #25791

Closed
patrickdillon opened this issue Jul 12, 2022 · 2 comments · Fixed by #25793
Closed

Error: error reading Route Table (rtb-xxx): couldn't find resource #25791

patrickdillon opened this issue Jul 12, 2022 · 2 comments · Fixed by #25793
Labels
eventual-consistency Pertains to eventual consistency issues. service/vpc Issues and PRs that pertain to the vpc service.
Milestone

Comments

@patrickdillon
Copy link
Contributor

Terraform CLI and Terraform AWS Provider Version

v4.5.0

Affected Resource(s)

  • aws_vpc_route_table

Terraform Configuration Files

It looks like this is an eventual consistency bug, so it is not easily reproduceable. I will link to our CI runs to show it happening.

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

resource "aws_route_table" "private_routes" {
  count = var.private_subnets == null ? length(var.availability_zones) : 0

  vpc_id = data.aws_vpc.cluster_vpc.id

  tags = merge(
    {
      "Name" = "${var.cluster_id}-private-${var.availability_zones[count.index]}"
    },
    var.tags,
  )
}

Source code is here.

Debug Output

An example of a CI failure with this error.

Expected Behavior

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

Actual Behavior

When trying to read the newly created route table, it is not found and an error is returned--rather than retrying to find the resource.

Steps to Reproduce

Unfortunately this depends on the aws backend so it is not easily reproduceable.

Important Factoids

References

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/vpc Issues and PRs that pertain to the vpc service. labels Jul 12, 2022
@ewbankkit ewbankkit added eventual-consistency Pertains to eventual consistency issues. and removed needs-triage Waiting for first response or review from a maintainer. labels Jul 13, 2022
@github-actions github-actions bot added this to the v4.23.0 milestone Jul 20, 2022
@github-actions
Copy link

This functionality has been released in v4.23.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 Aug 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
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