Amazon S3 bucket policy to grant access to particular bucket

{
  "Id": "Policy1422882024097",
  "Statement": [
    {
      "Sid": "Stmt1422881897244",
      "Action": [
        "s3:ListBucket"
      ],
      "Effect": "Allow",
      "Resource": "arn:aws:s3:::testbucket"
    },
    {
      "Sid": "Stmt1422881932883",
      "Action": [
        "s3:DeleteObject",
        "s3:GetObject",
        "s3:PutObject"
      ],
      "Effect": "Allow",
      "Resource": "arn:aws:s3:::testbucket/*"
    },
    {
      "Sid": "Stmt1422871876524",
      "Action": [
        "s3:GetBucketLocation",
        "s3:ListAllMyBuckets"
      ],
      "Effect": "Allow",
      "Resource": "arn:aws:s3:::*"
      }
  ]
}

You can apply this policy on user.

No comments:

Post a Comment