Skip to content

Instantly share code, notes, and snippets.

@EdRowe
EdRowe / dump-iam-details.py
Created February 23, 2017 07:04
Dumps all AWS IAM information to stdout, handling pagination
# Dumps all IAM information to stdout
# Basically a version of GetAccountAuthorizationDetails that takes care of pagination
# for you. Don't use the aws CLI version or you'll have to deal with pagination yourself
import boto3
import botocore
import json
from datetime import datetime