aws iam get-user
aws iam get-user
:{
"User": {
"UserName": "admin",
"Path": "/",
"CreateDate": "2020-09-01T07:04:52Z",
"UserId": "***A3***************",
"Arn": "arn:aws:iam::80**********:user/admin"
}
}
aws iam list-attached-user-policies --user-name admin
:{
"AttachedPolicies": [
{
"PolicyName": "AmazonS3FullAccess",
"PolicyArn": "arn:aws:iam::aws:policy/AmazonS3FullAccess"
},
{
"PolicyName": "AdministratorAccess",
"PolicyArn": "arn:aws:iam::aws:policy/AdministratorAccess"
}
]
}