whoamiaws
Jump to navigation
Jump to search
alias whoiamaws="aws iam get-user"
aws iam get-user An error occurred (AccessDenied) when calling the GetUser operation: User: arn:aws:sts::0123456789:assumed- role/ROLE_NAME/YOURusername is not authorized to perform: iam:GetUser on resource: user YOURusername
aws iam get-user An error occurred (ValidationError) when calling the GetUser operation: Must specify userName when calling with non-User credentials
aws iam get-user --user-name your-non-existant-user An error occurred (NoSuchEntity) when calling the GetUser operation: The user with name your-non-existant-user cannot be found.
Related terms
whoami
suaws
awswhoami: aws iam get-user
- Bash: alias, .zprofile
aws iam list-account-aliases
aws iam list-attached-user-policies --user-name
AWS_REGION
aws configure get region
See also
aws iam
[create-user
,create-group, get-user
,list-users
|list-policies
|list-attached-user-policies
|attach-user-policy
|list-attached-user-policies
|list-roles
|get-account-summary
|put-group-policy | put-role-policy | put-user-policy
|create-login-profile
|aws iam delete-virtual-mfa-device
|aws iam list-virtual-mfa-devices
|aws iam create-saml-provider
|aws iam list-account-aliases
|aws iam create-role | aws iam change-password| enable-mfa-device | list-instance-profiles
Bash [ -c ]
,alias
,&&
, Bash history, Autocompletion,set
,unset
,export
,.bash_aliases, .bashrc and .bash profile
,PS1
,echo
,brace expansion
, Function,shopt
,trap
,set -e
,source
,PATH
,complete
,disown
,.hushlogin
,.bashrc
,builtin
,eval
,set
,$PATH
,$HOME
,TZ
,.profile
,-e, -i
,Builtin (Bash)
,mapfile
,~
, return (Bash), for, until,declare, dirname, basename, functions.sh
, Bash arithmetic expansion,shift, bash --rcfile, readonly, $1, $@
Advertising: