AWS

Download 48
Last updated Jun 6, 2022

aws-iam-roles

Lists the AWS IAM roles

aws-iam-roles [profile=PROFILE]
profile=PROFILE
The identifier of AWS connect profile

AWS IAM Policy

To use this command, you must allow the below permissions in your AWS IAM policy:

  • iam:ListRoles

Output Fields

FieldTypeNameDescription
aws_profileStringConnect profileThe identifier of AWS connect profile
role_nameStringRole namee.g. AWSServiceRoleForElasticLoadBalancing
role_idStringRole ID
descriptionStringDescriptione.g. Allows ELB to call AWS services on your behalf.
created_atDateCreated at
pathStringPathe.g. /aws-service-role/elasticloadbalancing.amazonaws.com/
max_session_durationIntegerMax session duratione.g. 3600