IAM Commands
Information gathering⚑
List roles⚑
aws iam list-roles --query 'Roles[*].{RoleName: RoleName, RoleId: RoleId}' --output table
List policies⚑
aws iam list-policies --query 'Policies[*].{PolicyName: PolicyName, PolicyId: PolicyId}' --output table
List attached policies⚑
aws iam list-attached-role-policies --role-name {{ role_name }}
Get role configuration⚑
aws iam get-role --role-name {{ role_name }}
Get role policies⚑
aws iam list-role-policies --role-name {{ role_name }}