ShaunL's avatar

S3 User Policy

Hi all,

May be the wrong place to post this but if anyone has any ideas I would be grateful. I'm attempting to create an access policy for a user in S3 and appears something is going wrong. I want a policy that allows a user to simply upload files, nothing else. I created the below policy:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Stmt1442622389000",
            "Effect": "Allow",
            "Action": "s3:PutObject",
            "Resource": [
                "arn:aws:s3:::bucket/folder/*"
            ]
        }
    ]
}

appears to be throwing an error when I go to upload an image to the bucket (403 forbidden). When I change the s3:PutObject to * for complete access it works. Am I missing something here?

Shaun

0 likes
0 replies

Please or to participate in this conversation.