You need the following access permissions for an S3 bucket that is used for BBR backup/restore along with your IAM user for Ops Manager. This should be created manually or generated automatically by Terraform, such as
pcf-user,
yourenv_om_user, and so on.
- For BBR backup: s3:GetBucketVersioning
- For BBR restore: s3:GetObject
The example policy is shown below:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "BBRBackupRestorePolicy",
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:ListBucketMultipartUploads",
"s3:ListMultipartUploadParts",
"s3:CreateBucket",
"s3:PutObject",
"s3:GetBucketVersioning",
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::yourenv-buckup-bucket-1234/*",
"arn:aws:s3:::yourenv-buckup-bucket-1234"
]
}
]
}
These errors could typically happen if you use the same AWS account for Ops Manager and for the MySQL tile in order to backup data. However we recommend that you use different AWS accounts for such purposes. The minimal policy for the MySQL tile for S3 backup does not allow both
s3:GetBucketVersioning and
s3:GetObject. As a result, the minimal policy for the MySQL tile has an impact on BBR's access permissions if you use the same AWS account for Ops Manager and for MySQL tile.