nephila-clavata icon indicating copy to clipboard operation
nephila-clavata copied to clipboard

IAM Roles for Amazon EC2/S3

Open Extracreative opened this issue 10 years ago • 1 comments

Hi Is there any plan to enable this with AWS IAM roles?

Extracreative avatar Aug 21 '14 20:08 Extracreative

Hi Please set the following S3 roles.

  • s3:ListAllMyBuckets
  • s3:ListBucket
  • s3:GetBucketLocation
  • s3:PutObject
  • s3:GetObject
  • s3:DeleteObject

IAM policy Example

{
   "Statement":[
      // To List Buckets
      {
         "Effect":"Allow",
         "Action":[
            "s3:ListAllMyBuckets"
         ],
         "Resource":"arn:aws:s3:::*"
      },
      // To Buckets
      {
         "Effect":"Allow",
         "Action":[
            "s3:ListBucket",
            "s3:GetBucketLocation"
         ],
         "Resource":"arn:aws:s3:::bucket"
      },
      // To S3 objects
      {
         "Effect":"Allow",
         "Action":[
            "s3:PutObject",
            "s3:GetObject",
            "s3:DeleteObject"
         ],
         "Resource":"arn:aws:s3:::bucket/*"
      }
   ]
}

wokamoto avatar Aug 25 '14 08:08 wokamoto