You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of 0.7.6, if you call iam.roles.all, and you have > 100 roles, Fog::AWS::IAM fails to use IsTruncated and Marker to request the next batch of roles.
You might try converting roles to this (from Collection) and it may "just work", otherwise, perhaps @lanej may be able to advise, as he wrote the PagedCollection code originally.
As of 0.7.6, if you call iam.roles.all, and you have > 100 roles, Fog::AWS::IAM fails to use IsTruncated and Marker to request the next batch of roles.
I did some experimenting with this, and if I updated https://github.com/fog/fog-aws/blob/master/lib/fog/aws/models/iam/roles.rb#L13 to accept options, I could make a call like this:
iam_roles = iam.roles.all('MaxItems' => 1000)
and that would get all of my roles in one call.
Spent a couple hours poking at this and couldn't seem to find the right combo to get pagination working properly...
The text was updated successfully, but these errors were encountered: