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

How to Create Custom IAM Role to Connect to the Repository


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).


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": [
            "Resource": "arn:aws:s3:::<yourbucketname>/*"
            "Effect": "Allow",
            "Action": [
            "Resource": "arn:aws:s3:::<yourbucketname>"
            "Effect": "Allow",
            "Action": [
            "Resource": "*"

2. In AWS Management Console, navigate to IAM Management Console (Services -> Security, Identity & Compliance -> IAM).
3. Click Create role.
4. Select the type of the trusted entity AWS Service.
5. Choose S3 in Choose the service that will use this role.
6. Choose S3 in Select your use case.
7. Click Next: Permissions
8. in the filter policies search box, enter the name of the policy created in the Step 1.
9. In the first column, select the policy.
10. Click Next: Tags.
11. Enter tagging info and click Next: Review.
12. Give a name to the IAM Role. You will be using this name in the Veeam Backup for AWS UI (e.g. vb4aws_repo1role).
13. Click Create role.
14. One the role is created, you will be able to see it in the list of available roles.
15. 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.

Veeam Backup for AWS
Last Modified:
Please rate how helpful this article was to you:
5 out of 5 based on 1 ratings
Thank you for helping us improve!
An error occurred during voting. Please try again later.

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

Knowledge base content request
By submitting, you agree that your personal data will be managed by Veeam in accordance with the Privacy Policy.

ty icon

Thank you!

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


error icon

Oops! Something went wrong.

Please go back try again later.