iam list access keys
Here’s how to list all the access keys in AWS via Python.
import logging
import boto3
from botocore.exceptions import ClientError
# set aws profile
session = boto3.Session(profile_name="default")
# get list of users
iam = session.client('iam')
users = iam.list_users()
# display results
print("{0: