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]: aws_route_table - error reading Route Table (...): couldn't find resource #31895

Closed
sbocinec opened this issue Jun 12, 2023 · 3 comments · Fixed by #30999
Closed

[Bug]: aws_route_table - error reading Route Table (...): couldn't find resource #31895

sbocinec opened this issue Jun 12, 2023 · 3 comments · Fixed by #30999
Labels
bug Addresses a defect in current functionality. service/vpc Issues and PRs that pertain to the vpc service.
Milestone

Comments

@sbocinec
Copy link
Contributor

sbocinec commented Jun 12, 2023

Terraform Core Version

1.2.9

AWS Provider Version

4.67.0

Affected Resource(s)

  • aws_route_table

Expected Behavior

aws_route_table resource should have been created without error

Actual Behavior

creation failed because resource cannot be found (because of eventual consistency of AWS API) - similarly to #21629 & #30993

Relevant Error/Panic Output Snippet

2023-04-19T13:38:24.273Z	ERROR	.rpk.managed-byoc	zapio/writer.go:145
        	            	failed applying network resource: failed creating network: failed running terraform apply: exit status 1
        	            	Error: error reading Route Table (rtb-0dedaa5ab2fbf3cc2): couldn't find resource
        	            	  with module.network[0].aws_route_table.private[1],
        	            	  on ../../modules/terraform-aws-redpanda-network/routing.tf line 11, in resource "aws_route_table" "private":
        	            	  11: resource "aws_route_table" "private" {

Terraform Configuration Files

resource "aws_route_table" "private" {
  count  = length(var.private_subnet_cidrs)
  vpc_id = aws_vpc.redpanda.id

  tags = {
    purpose = "private"
  }
}

Steps to Reproduce

Create the resource in a loop run repeatedly ideally tens or hundreds of times until you hit this AWS race/eventual consistency bug

Debug Output

No response

Panic Output

No response

Important Factoids

We are hitting this issue consistently. There is already a PR #30999 fixing this issue but as it lacks attention, I have created this issue with hope the PR can can more traction to merged in soon.

References

Similar to #30993

Would you like to implement a fix?

None

@sbocinec sbocinec added bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. labels Jun 12, 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 Jun 12, 2023
@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label Jun 12, 2023
@github-actions github-actions bot added this to the v5.5.0 milestone Jun 16, 2023
@github-actions
Copy link

This functionality has been released in v5.5.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 23, 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. 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