Difference between revisions of "Whoamiaws"
Jump to navigation
Jump to search
Line 13: | Line 13: | ||
* [[Bash: alias]], [[.zprofile]] | * [[Bash: alias]], [[.zprofile]] | ||
* <code>[[aws iam list-account-aliases]]</code> | * <code>[[aws iam list-account-aliases]]</code> | ||
− | * <code>[[aws iam list-attached-user-policies]]</code> | + | * <code>[[aws iam list-attached-user-policies --user-name]]</code> |
* <code>[[AWS_REGION]]</code> | * <code>[[AWS_REGION]]</code> | ||
Revision as of 15:54, 10 April 2022
alias whoiamaws="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
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
See also
- AWS CLI,
aws
[configure
|iam
|ec2
|ecs
|eks
|s3
|rds
|sts
|cloudwatch
|cloudformation
|cloudfront
|eventbridge
|lambda
],aws configure list
,.aws/credentials
,.aws/config
,~/.aws/cli/alias
,--output [ table | json | text | XXX ]
, Aws cli environmental variables:AWS_PROFILE
,AWS_DEFAULT_REGION, AWS_REGION
,AWS_CLI_AUTO_PROMPT
,AWS_SESSION_TOKEN
,aws list all
,auto-prompt
,--version
,whoamiaws, --filters, --help
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: