thufir

Untitled

Jan 3rd, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. thufir@doge:~$
  2. thufir@doge:~$ cat .aws/config
  3. [default]
  4. output = text
  5. region = us-west-2
  6.  
  7.  
  8.  
  9. [profile thufir]
  10. role_arn = arn:aws:iam::1234567890:user/thufir
  11. source_profile = default
  12.  
  13. thufir@doge:~$
  14. thufir@doge:~$ aws iam list-users
  15. USERS arn:aws:iam::1234567890:user/thufir 2017-01-02T10:09:01Z / ABCDEFGIJKL thufir
  16. thufir@doge:~$
  17. thufir@doge:~$ aws s3 ls --profile thufir
  18.  
  19. An error occurred (AccessDenied) when calling the AssumeRole operation: Roles may not be assumed by root accounts.
  20. thufir@doge:~$
  21. thufir@doge:~$ export AWS_DEFAULT_PROFILE=thufir
  22. thufir@doge:~$
  23. thufir@doge:~$ aws s3 ls --profile thufir
  24.  
  25. An error occurred (AccessDenied) when calling the AssumeRole operation: Roles may not be assumed by root accounts.
  26. thufir@doge:~$
Advertisement
Add Comment
Please, Sign In to add comment