What are S3 Minimum Permissions?
-
I’ve been experimenting with the Offload Media Lite plugin and managed to configure it with an S3 role per the quick start guides. My main question is what is the minimal set of S3 permissions required by the plugin?
What works:
An s3 role with full S3 permissions. Documentation online does outline that you can restrict the role down to a single bucket and its objects. If that’s the case, then why does the role need create/delete bucket permissions? (The bucket exists already.)What doesn’t:
A role that has permissions on all S3 resources to: ListBucket, GetBucketLocation, PutObject, GetObject, DeleteObject, ListAllMyBuckets, HeadBucket. I’m not sure why this policy would show as “Unable to access bucket” since the site is already configured to use a bucket that already exists. Is there a hard requirement in the plugin for create and delete bucket, or have I missed some other permission(s) in the policy below? I am able to use the CLI and this policy to upload objects to the bucket with zero issues, so I can’t really infer what’s missing or why another permission would be needed.JSON below:
{
“Version”: “2012-10-17”,
“Statement”: [
{
“Sid”: “VisualEditor0”,
“Effect”: “Allow”,
“Action”: [
“s3:ListBucket”,
“s3:GetBucketLocation”
],
“Resource”: “arn:aws:s3:::*”
},
{
“Sid”: “VisualEditor1”,
“Effect”: “Allow”,
“Action”: [
“s3:PutObject”,
“s3:GetObject”,
“s3:DeleteObject”
],
“Resource”: “arn:aws:s3:::*/*”
},
{
“Sid”: “VisualEditor2”,
“Effect”: “Allow”,
“Action”: [
“s3:ListAllMyBuckets”,
“s3:HeadBucket”
],
“Resource”: “*”
}
]
}
- The topic ‘What are S3 Minimum Permissions?’ is closed to new replies.