Skip to content

Instantly share code, notes, and snippets.

@sherlockholmes
Created November 4, 2016 15:03
Show Gist options
  • Select an option

  • Save sherlockholmes/9ff1a9d44e216e5e59256beb52825c6c to your computer and use it in GitHub Desktop.

Select an option

Save sherlockholmes/9ff1a9d44e216e5e59256beb52825c6c to your computer and use it in GitHub Desktop.
IAM Roles to Enable Actions in Bucket
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetBucketLocation",
"s3:ListAllMyBuckets"
],
"Resource": "arn:aws:s3:::*"
},
{
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::mybucket"
]
},
{
"Effect": "Allow",
"Action": [
"s3:PutObject", //sirve para escribir
"s3:GetObject", //sirve para leer un archivo
"s3:DeleteObject", //sirve para borrar un archivo
"s3:GetObjectAcl", //ver permisos
"s3:PutObjectAcl" //cambiar permisos
],
"Resource": [
"arn:aws:s3:::mybucket/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment