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

Fix: handle pagination in ssm describeInstanceInformation #738

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ThaSami
Copy link

@ThaSami ThaSami commented Feb 20, 2025

What this PR does / why we need it:

This PR fixes an issue where experiments running SSM by tag sometimes report misleading IAM permission errors. The root cause we speculate is the implementation of DescribeInstanceInformation which do not handle pagination. By default the DescribeInstanceInfromation has limited result if the target instance resides on a subsequent page, it won’t be found in the first API response—resulting in an erroneous permission error message or so.

The fix updates the code to use the DescribeInstanceInformationPages to iterate through all pages and correctly aggregate instance information.

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
fixes #737

Special notes for your reviewer:

Checklist:

  • Fixes #
  • PR messages has document related information
  • Labelled this PR & related issue with breaking-changes tag
  • PR messages has breaking changes related information
  • Labelled this PR & related issue with requires-upgrade tag
  • PR messages has upgrade related information
  • Commit has unit tests
  • Commit has integration tests
  • E2E run Required for the changes

Signed-off-by: Sami Shabaneh <sami.shabaneh@careem.com>
@ThaSami ThaSami changed the title Fix: handle pagination in ssm describe Fix: handle pagination in ssm describeInstanceInformation Feb 20, 2025
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.

SSM by Tag: Misleading IAM Permission Error Due to Missing Pagination Handling
1 participant