2-iam-policy.yml 918 B

1234567891011121314151617181920212223242526272829
  1. {
  2. "Version": "2012-10-17",
  3. "Statement": [{
  4. "Effect": "Allow",
  5. "Action": [
  6. "s3:ListAllMyBuckets"
  7. ],
  8. "Resource": "arn:aws:s3:::*"
  9. },
  10. {
  11. "Effect": "Allow",
  12. "Action": [
  13. "s3:ListBucket",
  14. "s3:GetBucketLocation",
  15. "s3:ListBucketMultipartUploads",
  16. "s3:ListBucketVersions"
  17. ],
  18. "Resource": "arn:aws:s3:::interview-django-large-uploads"
  19. },
  20. {
  21. "Effect": "Allow",
  22. "Action": [
  23. "s3:*Object*",
  24. "s3:ListMultipartUploadParts",
  25. "s3:AbortMultipartUpload"
  26. ],
  27. "Resource": "arn:aws:s3:::interview-django-large-uploads/*"
  28. }]
  29. }