Skip to main content

list-roles

The aws iam list-roles command is used to list all the roles defined in an AWS account. This is useful for auditing and managing IAM roles across your organization.

Syntax

aws iam list-roles

See also the original AWS documentation.