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]: eventual consistency issue with route table and associations #32219

Closed
nicolaferraro opened this issue Jun 26, 2023 · 2 comments · Fixed by #32196
Closed

[Bug]: eventual consistency issue with route table and associations #32219

nicolaferraro opened this issue Jun 26, 2023 · 2 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.

Comments

@nicolaferraro
Copy link
Contributor

nicolaferraro commented Jun 26, 2023

Terraform Core Version

1.2.9

AWS Provider Version

4.67.0

Affected Resource(s)

  • aws_route_table
  • aws_route_table_association

Expected Behavior

When creating a route table and related associations, everything should work.

Actual Behavior

Occasionally configuration fails because of eventual consistency problems.

Relevant Error/Panic Output Snippet

Error: error reading Route Table Association (rtbassoc-0da24ddd875aa9a22): empty result
 
        	            	  with module.network[0].aws_route_table_association.public[2],
        	            	  on ../../modules/terraform-aws-xxx-network/routing.tf line 27, in resource "aws_route_table_association" "public":
        	            	  27: resource "aws_route_table_association" "public" {

Terraform Configuration Files

resource "aws_route_table" "main" {
  vpc_id = var.vpc_id
}

resource "aws_main_route_table_association" "vpc-main-route-table" {
  vpc_id         = var.vpc_id
  route_table_id = aws_route_table.main.id
}

resource "aws_route_table_association" "public" {
  subnet_id        = var.subnet_id
  route_table_id = aws_route_table.main.id
}

Steps to Reproduce

Apply the configuration multiple times, especially in us-west-1 or ap-south-1.

Debug Output

Not available.

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

Yes

@nicolaferraro nicolaferraro added bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. labels Jun 26, 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 26, 2023
nicolaferraro added a commit to nicolaferraro/terraform-provider-aws that referenced this issue Jun 26, 2023
@ewbankkit ewbankkit added eventual-consistency Pertains to eventual consistency issues. and removed needs-triage Waiting for first response or review from a maintainer. labels Jun 26, 2023
@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 27, 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
2 participants