I have the following IAM policy for a user
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1395161912000",
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:PutObject",
"s3:*"
],
"Resource": [
"arn:aws:s3:::bucketname"
]
},
{
"Sid": "list",
"Effect": "Allow",
"Action": [
"s3:ListAllMyBuckets"
],
"Resource": [
"arn:aws:s3:::*"
]
}
]
}
The goal is to let the user upload files to the bucket, but not overwrite or delete. It's for backup. I started out with ListBucket
and PutObject
, but added *
as it didn't work. Not even *
lets the user upload files, just getting Access Denied
.
When I try the Simulator, it returns Denied - Implicitly denied (no matching statements found).
for ListBucket
, which seems odd since I've implicitly allowed that.
I've tried both Cyberduck and 3Hub as S3 clients.
Any idea what's wrong?