Allow EKS users with over 100 IAM roles to see all roles in the "Role Name" dropdown
Problem to solve
Currently, if EKS user has over 100 IAM roles, they cannot see them all in the "Role Name" dropdown.
Intended users
Developers, operators
Further details
AWS API response seems to be truncated to 100 results, see https://docs.aws.amazon.com/sdkforruby/api/Aws/IAM/Client.html#list_roles-instance_method
Proposal
Perhaps we could paginate the results using the MaxItems
and Marker
parameters, see https://docs.aws.amazon.com/sdkforruby/api/Aws/IAM/Client.html#list_roles-instance_method.
Links / references
Relevant info bit here as well https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/IAM.html
MaxItems — (Integer)
Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true. If you do not include this parameter, the number of items defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true, and Marker contains a value to include in the subsequent call that tells the service where to continue from.
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.