-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
service/ec2/find: update call toDescribeRouteTables
with paginated method
#21710
Conversation
c7ae2f7
to
a87ccb6
Compare
```release-note:bug | ||
data-source/aws_route: Fix lack of pagination when describing route tables | ||
``` | ||
|
||
```release-note:bug | ||
resource/aws_default_route_table: Fix lack of pagination when describing route tables | ||
``` | ||
|
||
```release-note:bug | ||
resource/aws_route_table: Fix lack of pagination when describing route tables | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding in these in case to reflect the change affects additional resources that reference the underlying find method
DescribeRouteTables
with paginated methodDescribeRouteTables
with paginated method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc PKG_NAME=internal/service/ec2 TESTARGS='-run=TestAccEC2RouteTable_basic\|TestAccEC2RouteTableAssociation_Subnet_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20 -run=TestAccEC2RouteTable_basic\|TestAccEC2RouteTableAssociation_Subnet_basic -timeout 180m
=== RUN TestAccEC2RouteTableAssociation_Subnet_basic
=== PAUSE TestAccEC2RouteTableAssociation_Subnet_basic
=== RUN TestAccEC2RouteTable_basic
=== PAUSE TestAccEC2RouteTable_basic
=== CONT TestAccEC2RouteTableAssociation_Subnet_basic
=== CONT TestAccEC2RouteTable_basic
--- PASS: TestAccEC2RouteTable_basic (24.06s)
--- PASS: TestAccEC2RouteTableAssociation_Subnet_basic (32.69s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 36.075s
This functionality has been released in v3.65.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! |
Is it possible that the lack of pagination could also cause this intermittent error? error updating Security Group (sg-xxx): couldn't find resource |
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. |
Community Note
Relates #21683, #21629
Notes:
occur when finding the RouteTable, not the association itself. This could be because we use an unpaginated
DescribeRouteTables
method that may be needed for heavily used AWS accounts. Testing this is not easily feasible, so practitioner experience will need to validate this change.Output from acceptance testing: