Reputation: 20942
I have a couple of questions about an IAM User and granting access to S3.
Note: I'm using S3.php to write files with this users.
Can the user have a Password set?
After creating the user (have done) should I use a group or user policy to grant access?
I only want this user to be able to write objects (have bucket policy giving global public read). how can I grant just this right? (user policy) and are other rights need to put files in the bucket?
thx
Upvotes: 2
Views: 1083
Reputation: 5972
Point-by-point:
Below, I have included a basic policy which might do what you want. I expect it will require some tweaking to be exactly what you need:
{
"Statement": [
{
"Sid": "AnyUniqueIdentifierForThePolicyStatementGoesHere",
"Action": [
"s3:PutObject"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::YourBucketNameGoesHere/*"
]
}
]
}
Hopefully that is at least enough to point you in the right direction.
useful links:
Upvotes: 3