Skip to content

Instantly share code, notes, and snippets.

@msroz
Last active June 27, 2019 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msroz/84a07535151be0378924997a3d4e8dbe to your computer and use it in GitHub Desktop.
Save msroz/84a07535151be0378924997a3d4e8dbe to your computer and use it in GitHub Desktop.
Minimum policy for S3 via carrierwave and fog-aws
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::{{BucketName}}"
]
},
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject",
"s3:PutObjectAcl"
],
"Resource": [
"arn:aws:s3:::{{BucketName}}/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment