Header

S3 Bucket policy issues

Unfortunately, you may run into a connection issue when trying to add an S3 bucket to your DeployHQ project. A common cause of this is an incorrectly set policy. As a minimum, DeployHQ requires the following policy to be set:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Action": [  "s3:ListAllMyBuckets",  "s3:GetBucketLocation"  ],
      "Resource": [  "arn:aws:s3:::*"  ],
      "Effect": "Allow"
    },
    {
      "Action": [  "s3:*"  ],
      "Resource": [  "arn:aws:s3:::bucket-name/*"  ],
      "Effect": "Allow"
    }
  ]
}

Just update bucket-name in the the Resource parameter to match the name of your bucket.