ohnosequences / sbt-s3-resolver

:cloud:Amazon S3-based resolver for sbt
GNU Affero General Public License v3.0
117 stars 29 forks source link

Minimal IAM policy for the resolver #42

Closed laughedelic closed 8 years ago

laughedelic commented 8 years ago

Following @benoahriz's question on gitter, I'm going to add documentation about minimal needed IAM permissions for resolving/publishing.

Here is an example policy:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:CreateBucket",
                "s3:ListBucket"
            ],
            "Resource": "arn:aws:s3:::bucket.name"
        },
        {
            "Effect": "Allow",
            "Action": [
                "s3:PutObject",
                "s3:PutObjectAcl",
                "s3:GetObject"
            ],
            "Resource": "arn:aws:s3:::bucket.name/*"
        }
    ]
}
laughedelic commented 8 years ago

Closed by #43