Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. aws s3 cp --region us-east-1 s3://s3.amazonaws.com/my-bucket . --recursive
  2. A client error (AccessDenied) occurred when calling the ListObjects operation: Access Denied
  3. Completed 1 part(s) with ... file(s) remaining
  4.  
  5. {
  6. "Version": "2012-10-17",
  7. "Statement": [
  8. {
  9. "Effect": "Allow",
  10. "Action": "s3:*",
  11. "Resource": ["arn:aws:s3:::*"]
  12. }
  13. ]
  14. }
  15.  
  16. {
  17. "Id": "Policy1357935677554",
  18. "Statement": [
  19. {
  20. "Sid": "Stmt1357935647218",
  21. "Action": [
  22. "*"
  23. ],
  24. "Effect": "Allow",
  25. "Resource": "arn:aws:s3:::my-bucket",
  26. "Principal": {
  27. "AWS": [
  28. "arn:aws:iam::XXXXXXXXXX:user/my-user"
  29. ]
  30. }
  31. },
  32. {
  33. "Sid": "Stmt1357935676138",
  34. "Action": [
  35. "*"
  36. ],
  37. "Effect": "Allow",
  38. "Resource": "arn:aws:s3:::my-bucket/*",
  39. "Principal": {
  40. "AWS": [
  41. "arn:aws:iam::XXXXXXXXXX:user/my-user"
  42. ]
  43. }
  44. }
  45. ]
  46. }
  47.  
  48. aws s3api list-objects --region us-east-1 --bucket my-bucket
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement