okta-listroles
The okta-listroles tool allows you to authenticate to Okta and list the roles that are available to be assumed.
"accountName"
The AWS account name and number the role belongs to.
"roleOptions"
A list of roleName and AWS IAM roleArn pairs available without a given account.
"roleName"
The name of the AWS IAM Role.
"roleARN"
The ARN (Amazon Resource Name) of the AWS IAM Role.
Running a command like this:
okta-listroles
Will prompt for Okta credentials (or reuse your session) and output something like this to standard output:
[
{
"accountName": "Account: example-corp (123456789012)",
"roleOptions": [
{
"roleName": "Admin",
"roleArn": "arn:aws:iam::123456789012:role/Admin"
}
]
},
{
"accountName": "Account: example-research (654321234567)",
"roleOptions": [
{
"roleName": "Admin",
"roleArn": "arn:aws:iam::654321234567:role/Admin"
}
{
"roleName": "ReadOnly",
"roleArn": "arn:aws:iam::654321234567:role/ReadOnly"
}
]
}
]