Permissions for Bamboo Artifact Storage on S3

Hi, 

We recently switched to using S3 for artifact storage. We have a plan which has a shared artifact. The job which generates the artifact successfully uploads the artifact to S3 but the job which consumes that artifact is erroring with (obfuscated);

15-Jun-2015 17:18:00Preparing artifact 'ABC' for use at ABC
15-Jun-2015 17:18:00Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: ABC123ABC123)
15-Jun-2015 17:18:00Failure in artifact preparation phase during processing of: Subscription for Shared artifact: [ABC], pattern: [**/*] anchored at: [/ABC/ABC/bin], destination: [ABC]
15-Jun-2015 17:18:001 error(s) found when performing pre-build actions.

The IAM account that bamboo is using has the following policy;

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Stmt1234383843000",
            "Effect": "Allow",
            "Action": [
                "s3:GetBucketLocation",
                "s3:ListAllMyBuckets"
            ],
            "Resource": [
                "arn:aws:s3:::*"
            ]
        },
        {
            "Sid": "Stmt1234383879000",
            "Effect": "Allow",
            "Action": [
                "s3:*"
            ],
            "Resource": [
                "arn:aws:s3:::atlassian-net-bamboo-artifacts/*"
            ]
        }
    ]
}

Any ideas what permission we are missing? Using the AWS policy simulator I can see that the IAM account has permissions to all actions in the specified bucket. 

 

Thanks. 

1 answer

0 votes

Change ListAllMyBuckets to ListBucket and resource name to arn:aws:s3:::atlassian-net-bamboo-artifacts

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

4,916 views 20 14
View question

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you