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

aws_ec2_route_table_association: use retry logic on newly created resource #22927

Conversation

thatderek
Copy link
Contributor

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates #22479
Closes #21629
Closes #21683
Closes #21978

Output from acceptance testing:

➜  terraform-provider-aws git:(ec2-vpc-route-table-association-retry-logic) ✗ make testacc TESTS=TestAccEC2RouteTableAssociation PKG=ec2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20 -run='TestAccEC2RouteTableAssociation'  -timeout 180m
=== RUN   TestAccEC2RouteTableAssociation_Subnet_basic
=== PAUSE TestAccEC2RouteTableAssociation_Subnet_basic
=== RUN   TestAccEC2RouteTableAssociation_Subnet_changeRouteTable
=== PAUSE TestAccEC2RouteTableAssociation_Subnet_changeRouteTable
=== RUN   TestAccEC2RouteTableAssociation_Gateway_basic
=== PAUSE TestAccEC2RouteTableAssociation_Gateway_basic
=== RUN   TestAccEC2RouteTableAssociation_Gateway_changeRouteTable
=== PAUSE TestAccEC2RouteTableAssociation_Gateway_changeRouteTable
=== RUN   TestAccEC2RouteTableAssociation_disappears
=== PAUSE TestAccEC2RouteTableAssociation_disappears
=== CONT  TestAccEC2RouteTableAssociation_Subnet_basic
=== CONT  TestAccEC2RouteTableAssociation_Gateway_changeRouteTable
=== CONT  TestAccEC2RouteTableAssociation_Gateway_basic
=== CONT  TestAccEC2RouteTableAssociation_disappears
=== CONT  TestAccEC2RouteTableAssociation_Subnet_changeRouteTable
--- PASS: TestAccEC2RouteTableAssociation_disappears (20.55s)
--- PASS: TestAccEC2RouteTableAssociation_Subnet_basic (21.85s)
--- PASS: TestAccEC2RouteTableAssociation_Gateway_basic (25.67s)
--- PASS: TestAccEC2RouteTableAssociation_Subnet_changeRouteTable (33.67s)
--- PASS: TestAccEC2RouteTableAssociation_Gateway_changeRouteTable (197.58s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	197.739s
➜  terraform-provider-aws git:(ec2-vpc-route-table-association-retry-logic) ✗

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/ec2 Issues and PRs that pertain to the ec2 service. size/XS Managed by automation to categorize the size of a PR. labels Feb 3, 2022
@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Feb 3, 2022
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀.

% make testacc TESTS=TestAccEC2RouteTableAssociation_ PKG=ec2   
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20 -run='TestAccEC2RouteTableAssociation_'  -timeout 180m
=== RUN   TestAccEC2RouteTableAssociation_Subnet_basic
=== PAUSE TestAccEC2RouteTableAssociation_Subnet_basic
=== RUN   TestAccEC2RouteTableAssociation_Subnet_changeRouteTable
=== PAUSE TestAccEC2RouteTableAssociation_Subnet_changeRouteTable
=== RUN   TestAccEC2RouteTableAssociation_Gateway_basic
=== PAUSE TestAccEC2RouteTableAssociation_Gateway_basic
=== RUN   TestAccEC2RouteTableAssociation_Gateway_changeRouteTable
=== PAUSE TestAccEC2RouteTableAssociation_Gateway_changeRouteTable
=== RUN   TestAccEC2RouteTableAssociation_disappears
=== PAUSE TestAccEC2RouteTableAssociation_disappears
=== CONT  TestAccEC2RouteTableAssociation_Subnet_basic
=== CONT  TestAccEC2RouteTableAssociation_Gateway_changeRouteTable
=== CONT  TestAccEC2RouteTableAssociation_disappears
=== CONT  TestAccEC2RouteTableAssociation_Gateway_basic
=== CONT  TestAccEC2RouteTableAssociation_Subnet_changeRouteTable
--- PASS: TestAccEC2RouteTableAssociation_Subnet_basic (41.46s)
--- PASS: TestAccEC2RouteTableAssociation_Gateway_basic (45.30s)
--- PASS: TestAccEC2RouteTableAssociation_disappears (53.14s)
--- PASS: TestAccEC2RouteTableAssociation_Gateway_changeRouteTable (69.14s)
--- PASS: TestAccEC2RouteTableAssociation_Subnet_changeRouteTable (70.76s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/ec2        74.535s

@ewbankkit
Copy link
Contributor

@thatderek Thanks for the contribution 🎉 👏.

@thatderek
Copy link
Contributor Author

And thanks for the clean up on that @ewbankkit . I feel like I keep creating more work for you rather than less, but know I'm looking at the changes you do and learning from them for whatever I end up trying to PR next.

@ewbankkit
Copy link
Contributor

@thatderek No worries. We need to document some of this stuff better.

@github-actions
Copy link

This functionality has been released in v4.0.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!

gflex pushed a commit to gflex/terraform-provider-aws that referenced this pull request Mar 22, 2022
…-association-retry-logic

aws_ec2_route_table_association: use retry logic on newly created resource
anGie44 added a commit that referenced this pull request Mar 24, 2022
backport #22927 thatderek/ec2-vpc-route-table-association to release/3.x
obourdon pushed a commit to obourdon/terraform-provider-aws that referenced this pull request Mar 28, 2022
…-association-retry-logic

aws_ec2_route_table_association: use retry logic on newly created resource
@github-actions
Copy link

I'm going to lock this pull request 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 related to this change, 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 May 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/ec2 Issues and PRs that pertain to the ec2 service. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
3 participants