Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
boto3 list users via resource handler
import boto3
if __name__ == "__main__":
session = boto3.session.Session()
resource = session.resource("iam")
[print(r.arn) for r in getattr(resource, "users").all()]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment