Skip to content

Instantly share code, notes, and snippets.

@rockymeza
Created August 5, 2013 16:00
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save rockymeza/6157069 to your computer and use it in GitHub Desktop.
Save rockymeza/6157069 to your computer and use it in GitHub Desktop.
AWS IAM Policy for S3 for django-storages
{
   "Statement":[
      {
         "Effect":"Allow",
       
         "Action":[
            "s3:ListAllMyBuckets"
         ],
         "Resource":"arn:aws:s3:::*"
      },
      {
         "Effect":"Allow",
         "Action":[
            "s3:ListBucket",
            "s3:GetBucketLocation"
         ],
         "Resource":"arn:aws:s3:::bucket-name"
      },
      {
         "Effect":"Allow",
         "Action":[
            "s3:*Object*"
         ],
         "Resource":"arn:aws:s3:::bucket-name/*"
      }
   ]
}
@reverie
Copy link

reverie commented May 28, 2014

Thanks! Why does it need ListAllMyBuckets?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment