1-800-691-1991 | 9am - 8pm ET
EN

How to Create Custom IAM Role to Connect to the Repository

KB ID: 3033
Product: Veeam Backup for AWS
Version: Any
Published: 2019-12-02
Last Modified: 2021-05-10

Challenge

The backup service is using the IAM Role to generate temporary access keys to connect to the S3 bucket where backup data is stored (Veeam Backup Object Repository).

Solution

  1. Use the following JSON (make sure to replace the <yourbucketname> tag with the actual name) to create a IAM Policy by following the instructions from the How to create IAM Policy article.
    These permissions will allow backup service to access the S3 repository to save/load data to/from an object repository.
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:PutObject",
                "s3:GetObject",
                "s3:DeleteObject"
            ],
            "Resource": "arn:aws:s3:::<yourbucketname>/*"
        },
        {
            "Effect": "Allow",
            "Action": [
                "s3:ListBucket",
                "s3:GetBucketLocation"
            ],
            "Resource": "arn:aws:s3:::<yourbucketname>"
        },
        {
            "Effect": "Allow",
            "Action": [
                "s3:ListAllMyBuckets",
                "ec2:DescribeRegions"
            ],
            "Resource": "*"
        }
    ]
}
  1. In AWS Management Console, navigate to IAM Management Console (Services -> Security, Identity & Compliance -> IAM).
  2. Click Create role.
  3. Select the type of the trusted entity AWS Service.
  4. Choose S3 in Choose the service that will use this role.
  5. Choose S3 in Select your use case.
  6. Click Next: Permissions.
  7. in the filter policies search box, enter the name of the policy created in the Step 1.
  8. In the first column, select the policy.
  9. Click Next: Tags.
  10. Enter tagging info and click Next: Review.
  11. Give a name to the IAM Role. You will be using this name in the Veeam Backup for AWS UI (e.g. vb4aws_repo1role).
  12. Click Create role.
  13. One the role is created, you will be able to see it in the list of available roles.
  14. To add this role to the Veeam Backup for AWS service, you must update "Trust relationships" for the created role as described in this article.
KB ID: 3033
Product: Veeam Backup for AWS
Version: Any
Published: 2019-12-02
Last Modified: 2021-05-10

Couldn't find what you were looking for?

Below you can submit an idea for a new knowledge base article.
Report a typo on this page:

Please select a spelling error or a typo on this page with your mouse and press CTRL + Enter to report this mistake to us. Thank you!

Spelling error in text

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Your report was sent to the responsible team. Our representative will contact you by email you provided.

Oops! Something went wrong.

Please try again later.

KB Feedback/Suggestion

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Policy.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Thank you for your interest in Veeam products!
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend

ty icon

Thank you!

We have received your request and our team will reach out to you shortly.

OK

error icon

Oops! Something went wrong.

Please try again later.