gjbae1212 / gossm

💻Interactive CLI tool that you can connect to ec2 using commands same as start-session, ssh in AWS SSM Session Manager
MIT License
418 stars 51 forks source link

findInstances: batch requests for > 200 instances #35

Closed tonyghita closed 3 years ago

tonyghita commented 3 years ago

Currently, this tool is not usable if the AWS account has more than 200 EC2 instances running because the maximum amount of filters or filter values in a DescribeInstances API call is exceeded. When running gossm, the following error prints:

FilterLimitExceeded: The maximum number of filter values specified on a single call is 200

This change breaks up the call to DescribeInstances into multiple requests when there are more than 200 instances running.

Fixes #31