aws iam list-account-aliases
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iam/list-account-aliases.html
aws iam list-account-aliases
aws iam list-account-aliases --output text
aws iam list-account-aliases "AccountAliases": [ "mycompany" ]
An error occurred (AccessDenied) when calling the ListAccountAliases operation: User: arn:aws:iam::0123456789:user/YOUR_USER is not authorized to perform: iam:ListAccountAliases on resource: *
To login: https://account-ID-or-alias.signin.aws.amazon.com/console
Related
aws list all
aws iam create-account-alias
aws organizations list-accounts
- Account-id
- AWS Organizations:
aws organizations list-accounts
aws sts get-caller-identity
- AWS info
Activities
See also
Advertising: