Skip to main content

get-role

The aws iam get-role command is used to retrieve information about a specific IAM role. This includes details such as the role's ARN, policies attached, and trust relationships.

Syntax

aws iam get-role \
--role-name ROLE_NAME

Options

  • --role-name ROLE_NAME: The name of the IAM role to retrieve information for.

See also the original AWS documentation.