How-To Guides / IAM How to list all roles in your AWS account Run the below command to view all the roles defined in an AWS account. aws iam list-roles Share this: Share on WhatsApp (Opens in new window) WhatsApp Share on Facebook (Opens in new window) Facebook Share on LinkedIn (Opens in new window) LinkedIn Share on Pinterest (Opens in new window) Pinterest Share on Reddit (Opens in new window) Reddit Related See also How to print only file names from an S3 bucket