cloudflare / complainer

Complainer's job is to send notifications to different services when tasks fail on Mesos cluster.
MIT License
82 stars 13 forks source link

AWS S3: Add minimum policy rules for complainer #18

Closed andygrunwald closed 8 years ago

andygrunwald commented 8 years ago

I configured complainer with the usage of S3 (s3aws from #17). Everything is working fine. What i asked myself during this road:

I tested it and the only requirement that is needed is:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Stmt1465396834000",
            "Effect": "Allow",
            "Action": [
                "s3:PutObject"
            ],
            "Resource": [
                "arn:aws:s3:::YOUR-BUCKET-NAME/*"
            ]
        }
    ]
}

It would make sense to add this to the README / docs for future users. I didn`t apply a PR (yet), because #17 is not merged yet and this would create a conflict if i put this into the README as well.

bobrik commented 8 years ago

Looks like s3:PutObject should be enough. Feel free to make a PR to reflect that.

andygrunwald commented 8 years ago

See #22