The HW Blog

Want to be updated? @opencoconut | Feed

Setting Special Permissions on Amazon S3 Bucket

Bruno Celeste (@brunoceleste)

April 01, 2014 Tech

Actually you can create a new user with specific permissions on a specific bucket. So this is exactly what we want for Coconut uploads.

First, go to the amazon console

Create a new user and let the box checked to create access/secret keys. Once done, Download the credentials.

Create a new S3 User

Next, select the new user and select the Permissions tab at the bottom.

Create permissions for S3 User

Click Attach User Policy > Custom Policy

Set S3 Policy for User

Here is the complete Policy:

{
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "s3:GetObject",
        "s3:PutObject",
        "s3:GetObjectAcl",
        "s3:PutObjectAcl"
      ],
      "Resource": "arn:aws:s3:::BUCKETNAME/*",
      "Condition": {}
    },
    {
      "Effect": "Allow",
      "Action": [
        "s3:ListBucket",
        "s3:GetBucketAcl"
      ],
      "Resource": "arn:aws:s3:::BUCKETNAME",
      "Condition": {}
    }
  ]
}

You can learn more reading the official documentation



Any Comment? Send us a message on Twitter @opencoconut
If you have questions or feedbacks, you can also contact us via our contact page