Difference between revisions of "Whoamiaws"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
 
<code>[[alias]] whoiamaws="[[aws iam get-user]]"</code>
 
<code>[[alias]] whoiamaws="[[aws iam get-user]]"</code>
  
 +
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
 
  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]]
 
  An error occurred ([[ValidationError]]) when calling the [[GetUser]] operation: Must specify [[userName]] when calling with [[non-User credentials]]
  
 +
 +
aws iam get-user --user-name
  
 
== Related terms ==
 
== Related terms ==

Revision as of 15:47, 26 August 2022

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 

Related terms

See also

Advertising: