Discover Old Access Keys

Discover IAM access keys above a certain age.

Source codePermissions

Usage

Input

Parameter Description Type Required Default value
threshold_days Get access keys older than this number of days int Yes None
region Region for operation string No Session default
debug Increase log verbosity bool No False
silent Decrease log verbosity bool No False
output Output format
table
string No None
session Established session object No None

Output

Returns a list of dictionaries containing discovered access keys:

[
    {
        "UserName": "string",
        "AccessKeyId": "string"
    }
]

Examples

Discover access keys older than 90 days:

aaws iam discover_old_access_keys --threshold_days 90