Skip to content

Comments

aws/ec2: properly paginate DescribeNetworkInterfaces results#6

Open
MitchLewis930 wants to merge 1 commit intopr_046_beforefrom
pr_046_after
Open

aws/ec2: properly paginate DescribeNetworkInterfaces results#6
MitchLewis930 wants to merge 1 commit intopr_046_beforefrom
pr_046_after

Conversation

@MitchLewis930
Copy link

PR_046

Signed-off-by: Anton Ippolitov <anton.ippolitov@datadoghq.com>
@MitchLewis930 MitchLewis930 requested a review from Copilot January 31, 2026 01:12
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves the pagination handling for AWS EC2 DescribeNetworkInterfaces API calls by introducing an explicit maximum results limit per API call.

Changes:

  • Added a new constant ENIMaxResultsPerApiCall set to 1000 to control the number of ENI objects fetched per API call
  • Applied the MaxResults parameter to three DescribeNetworkInterfaces API invocations to enable proper pagination

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pkg/defaults/defaults.go Defines the new ENIMaxResultsPerApiCall constant with a value of 1000
pkg/aws/ec2/ec2.go Adds MaxResults parameter to three DescribeNetworkInterfaces API calls using the new constant

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants