How to get information about an IAM role

Use the below command to view all the information of an IAM role where ROLENAME is the name of the role.

aws iam get-role --role-name ROLENAME

See also  How to change owner of a Procedure in Redshift database