IAM Policy causing /s3/store bot to fail

Archived from the Transloadit support forum. Originally posted on June 4, 2011; details may be outdated, see our docs for current behavior. Original thread

I’ve tried the following IAM policies and they’ve both caused my assemblies to fail. Any advice?

{ "Statement": [
    {
      "Sid": "xxxxxxx",
      "Action": "s3:*",
      "Effect": "Allow",
      "Resource": "arn:aws:s3:::my.bucket.name",
      "Condition": {
        "StringLike": {
          "s3:prefix": "*"
        }
      }
    }
] }
{
"Statement": [
 {
  "Sid": "xxxxxxx",
  "Action": "s3:*",
  "Effect": "Allow",
  "Resource": "arn:aws:s3:::my.bucket.name/*",
}

] }

With the second one the files get stored but your bot can’t see them and keeps trying to save them.

Hi,

I think the Resource value either has to be:

“arn:aws:s3:::my.bucket.name”

or you need to add two statements, one with the Resource value above, and one with the value you already have ("arn:aws:s3:::my.bucket.name/*").

The reason for that is that we need to be able issue a PUT against a given key, as well as do a LIST against the bucket to verify the file to be present. Unfortunately it seems like S3 ignores the key prefix for the LIST command when evaluating permissions.

Please let me know if this works, otherwise I’ll set up a new bucket and try it out myself again.

--fg

Closing this for now because the ticket is old.

Please feel free to reopen this, wizard.

closing