I have created a group and I added new user to this group then I have created the following IAM policy:
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "s3:ListAllMyBuckets", "Resource": "arn:aws:s3:::*" }, { "Effect": "Allow", "Action": [ "s3:ListBucket", "s3:GetBucketLocation" ], "Resource": "arn:aws:s3:::EXAMPLE-BUCKET-NAME" }, { "Effect": "Allow", "Action": [ "s3:PutObject", "s3:GetObject", "s3:DeleteObject" ], "Resource": "arn:aws:s3:::EXAMPLE-BUCKET-NAME/*" } ] }
I got the above policy from :
http://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_examples.html
Basically, I want to grant permission just for one specific bucket but the above policy doesn't work. The user still can add, delete , modify files from another buckets.
Thanks!