GxCloud - How to configure AWS IAM for Backups

Unofficial Content

Steps to create and configure an AWS Bucket for storage of the GxCloud backups:

  1. Create an AWS Bucket
    1. Go to AWS Console and click S3
    2. Click "Create Bucket" and fill the Bucket Name and select the Bucket Region (US Standard is the default one)
  2. Configure an AWS IAM to access the bucket
    1. Go to AWS Console and click "Identity & Access Management"
    2.  Go to Policies and click "Create new Policy"
    3. Select the option:"Create Your Own Policy"
    4. Fill the Policy Name and paste this on Policy Document (change <BucketName> with the name of the bucket created:
      1. {
            "Version": "2012-10-17",
            "Statement": [
                {
                    "Effect": "Allow",
                    "Action": "s3:ListAllMyBuckets",
                    "Resource": "arn:aws:s3:::*"
                },
                {
                    "Effect": "Allow",
                    "Action": "s3:*",
                    "Resource": [
                        "arn:aws:s3:::<BucketName>",
                        "arn:aws:s3:::<BucketName>/*"
                    ]
                }
            ]
        }
    5. Click Create Policy
    6. Go to Users and click "Create new User"
    7. Fill with the name of the user and click create
    8. IMPORTANT Save the Access Key ID and the Secret Access Key and click close 2 times
    9. Go to the list of Users and select the one created
    10. On the Permissions Tab click on Attach policy
    11. Select the Policy created and click Attach Policy
  3. The Saved Access Key ID , the Secret Access Key, the Bucket Name and the AWS Region are the ones needed to upload backups.