Retrieving a list of all AWS managed policies available to the account. The AWS console lists 122 available policies. The following API call only gets back 100. There does not seem to be a next_page to iterate over. Is this the right way to page through?
iam_client.list_policies.each do |response|
response.policies.each do |d|
print d.policy_name
end
end
thanks!
Retrieving a list of all AWS managed policies available to the account. The AWS console lists 122 available policies. The following API call only gets back 100. There does not seem to be a next_page to iterate over. Is this the right way to page through?
thanks!