Discover Unused Access Keys

Discover IAM access keys not used for over a number of days.

Source codePermissions

Usage

Input

Parameter Description Type Required Default value
threshold_days Get access keys not used for more 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 not used for more than 60 days:

aaws iam discover_unused_access_keys --threshold_days 60