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

Find ASGs by DescribeTags first since DescribeAutoScalingGroups is paginated #36

Closed
wants to merge 1 commit into from

Conversation

jwineinger
Copy link
Contributor

@jwineinger jwineinger commented Nov 18, 2016

Our environment has more than one page of autoscaling groups, so just iterating over a single page of results was missing the ASG I was testing with. This PR uses DescribeTags with a filter to find the ASG names that have the tag and then do a DescribeAutoScalingGroups only on those groups.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 0.0% when pulling ff08b8a on jwineinger:filter-tags into 562139c on cristim:master.

@cristim
Copy link
Member

cristim commented Nov 18, 2016

Thanks, that's a really good catch, I never tested it on an account with so many groups.

I guess this will still remain a problem if you ever enable it on all your groups, so eventually we'd need to add pagination to most of our API calls.

Copy link
Contributor

@xlr-8 xlr-8 left a comment

Choose a reason for hiding this comment

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

Mentioned earlier the naming of scanForEnabledAutoScalingGroupsByTag, rest looks good to me.

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.

None yet

4 participants