I get an error when switching to S3 for artifact storage

I entered my access key and secret key in the "Shared Credentials" section of Bamboo Administration, then went to switch my artifact storage to S3, and I get the following error:
Bucket does not exist and/or could not be created. Check your AWS credentials to ensure they have sufficient permissions.
I've even tried this with an access key that has full access to everything on the entire AWS account, but to no avail.  Here is the inline policy attached to the account, which should work fine, AFAICT:

 

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Stmt1436196480000",
            "Effect": "Allow",
            "Action": [
                "s3:GetBucketLocation",
                "s3:ListAllMyBuckets",
                "s3:ListBucket"
            ],
            "Resource": [
                "arn:aws:s3:::*"
            ]
        }
    ]
}

And for full-access to that particular bucket:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Stmt1436195288000",
            "Effect": "Allow",
            "Action": [
                "s3:*"
            ],
            "Resource": [
                "arn:aws:s3:::bamboo-artifacts",
                "arn:aws:s3:::bamboo-artifacts/*"
            ]
        }
    ]
}

2 answers

Hi Jeff, 

Did you try to follow the instructions here: Add AWS credentials to Bamboo?  This should do the trick for you. smile

Hope this helps! 

Cheers!

I didn't try that, and that may work, but what is the point of the S3 artifact bucket setup UI in Bamboo if I just get the error above? I can do everything manually using the article you gave me above, but it seems like Bamboo should be able to integrate more easily/automatically based on the Bamboo UI.

I get the same error switching back from Atlassian Cloud to Amazon S3 with a previously created bucket name. With a new bucket name it works (artifacts storage settings get saved), but the build artifacts are not copied.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,493 views 0 5
Read article

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