Created
November 4, 2016 15:03
-
-
Save sherlockholmes/9ff1a9d44e216e5e59256beb52825c6c to your computer and use it in GitHub Desktop.
IAM Roles to Enable Actions in Bucket
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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