

AWS Migration Hub is no longer open to new customers as of November 7, 2025. For capabilities similar to AWS Migration Hub, explore [AWS Transform](https://aws.amazon.com/transform).

# Using Service-Linked Roles for Migration Hub
Using Service-Linked Roles

AWS Migration Hub uses AWS Identity and Access Management (IAM)[ service-linked roles](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-service-linked-role). A service-linked role is a unique type of IAM role that is linked directly to Migration Hub. Service-linked roles are predefined by Migration Hub and include all the permissions that the service requires to call other AWS services on your behalf. 

A service-linked role makes setting up Migration Hub easier because you don't have to manually add the necessary permissions. Migration Hub defines the permissions of its service-linked roles, and the services that can assume its roles. The permissions include the trust policy and the permissions policy, which cannot be attached to any other IAM entity.

For information about other services that support service-linked roles, see [AWS Services That Work with IAM](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-services-that-work-with-iam.html) and look for the services that have **Yes** in the **Service-Linked Role** column. Choose a **Yes** with a link to view the service-linked role documentation for that service.

**Topics**
+ [

# Using Roles to Connect Migration Hub to Application Discovery Service
](using-service-linked-roles-discovery-service-role.md)
+ [

# Using Roles to Connect Migration Hub to AWS DMS
](using-service-linked-roles-dms-service-role.md)

# Using Roles to Connect Migration Hub to Application Discovery Service
Application Discovery Service Role

Migration Hub uses the service-linked role named **AWSServiceRoleForMigrationHub**. The role allows Migration Hub to call the Application Discovery Service on your behalf. This enables AWS Migration Hub to match migration tracking updates to servers and applications that you've discovered.

## Service-Linked Role Permissions for Migration Hub


The AWSServiceRoleForMigrationHub service-linked role trusts the following services to assume the role:
+ `migrationhub.amazonaws.com`

The role permissions policy is as follows:

------
#### [ JSON ]

****  

```
{
    "Version":"2012-10-17",		 	 	 
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "discovery:ListConfigurations",
                "discovery:DescribeConfigurations"
            ],
            "Resource": [
                "*"
            ]
        },
        {
            "Effect": "Allow",
            "Action": "ec2:CreateTags",
            "Resource": [
                "arn:aws:ec2:*:*:instance/*",
                "arn:aws:ec2:*:*:image/*"
            ],
            "Condition": {
                "ForAllValues:StringEquals": {
                    "aws:TagKeys": "aws:migrationhub:source-id"
                }
            }
        },
        {
            "Effect": "Allow",
            "Action": "dms:AddTagsToResource",
            "Resource": [
                "arn:aws:dms:*:*:endpoint:*"
            ],
            "Condition": {
                "ForAllValues:StringEquals": {
                    "aws:TagKeys": "aws:migrationhub:source-id"
                }
            }
        }
    ]
}
```

------

To allow an IAM entity such as a user, group, or role, to create, edit, or delete a service-linked role, configure permissions that allow it. For more information, see [Service-Linked Role Permissions](https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#service-linked-role-permissions) in the *IAM User Guide*.

## Creating a Service-Linked Role for Migration Hub


You're not required to manually create a service-linked role. When you access the Migration Hub console, Migration Hub creates the service-linked role for you. 

**Important**  
This service-linked role can appear in your account if you completed an action in another service that uses the features supported by this role. To learn more, see [A New Role Appeared in My IAM Account](https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_roles.html#troubleshoot_roles_new-role-appeared).

### Creating a Service-Linked Role in Migration Hub (Console)


Use the Migration Hub console to create this service-linked role. Open a web browser and navigate to the Migration Hub console at [console.aws.amazon.com/migrationhub](https://console.aws.amazon.com/migrationhub).

You can also use the IAM console to create a service-linked role for use with the AWS CLI or the AWS API. For more information, see [Creating a Service-Linked Role](https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#create-service-linked-role) in the *IAM User Guide*.

If you delete this role and then want to create it again, use the same process. When you access the Migration Hub console, Migration Hub creates the service-linked role for you again. 

## Editing a Service-Linked Role for Migration Hub


Migration Hub does not allow you to edit the AWSServiceRoleForMigrationHub service-linked role. After you create a service-linked role, you cannot change the name of the role because various entities might reference the role. However, you can edit the description of the role using IAM. For more information, see [Editing a Service-Linked Role](https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#edit-service-linked-role) in the *IAM User Guide*.

## Deleting a Service-Linked Role for Migration Hub


### Manually Delete the Service-Linked Role


Use the IAM console, the AWS CLI, or the AWS API to delete the AWSServiceRoleForMigrationHub service-linked role. For more information, see [Deleting a Service-Linked Role](https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#delete-service-linked-role) in the *IAM User Guide*.

## Supported Regions for Migration Hub Service-Linked Roles


Migration Hub supports using service-linked roles in the US West (Oregon) AWS Region, where the service is available.

# Using Roles to Connect Migration Hub to AWS DMS
AWS DMS Role

Migration Hub uses the service-linked role named **AWSServiceRoleForMigrationHubDMSAccess** – Allows AWS Database Migration Service (AWS DMS) to send migration tracking information from any supported AWS Region to Migration Hub in US West (Oregon).

## Service-Linked Role Permissions for Migration Hub


The AWSServiceRoleForMigrationHubDMSAccess service-linked role trusts the following services to assume the role:
+ `dms.amazonaws.com`

The role permissions policy is as follows:

------
#### [ JSON ]

****  

```
{
    "Version":"2012-10-17",		 	 	 
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "mgh:CreateProgressUpdateStream",
            "Resource": "arn:aws:mgh:*:*:progressUpdateStream/DMS"
        },
        {
            "Effect": "Allow",
            "Action": [
                "mgh:DescribeMigrationTask",
                "mgh:AssociateDiscoveredResource",
                "mgh:ListDiscoveredResources",
                "mgh:ImportMigrationTask",
                "mgh:ListCreatedArtifacts",
                "mgh:DisassociateDiscoveredResource",
                "mgh:AssociateCreatedArtifact",
                "mgh:NotifyMigrationTaskState",
                "mgh:DisassociateCreatedArtifact",
                "mgh:PutResourceAttributes"
            ],
            "Resource": "arn:aws:mgh:*:*:progressUpdateStream/DMS/migrationTask/*"
        },
        {
            "Effect": "Allow",
            "Action": [
                "mgh:ListMigrationTasks",
                "mgh:NotifyApplicationState",
                "mgh:DescribeApplicationState"
            ],
            "Resource": "*"
        }
    ]
}
```

------

To allow an IAM entity such as a user, group, or role to create, edit, or delete a service-linked role, configure permissions to allow this. For more information, see [Service-Linked Role Permissions](https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#service-linked-role-permissions) in the *IAM User Guide*.

## Creating a Service-Linked Role for Migration Hub


You're not required to manually create a service-linked role. When you connect to AWS DMS in the Migration Hub console, Migration Hub creates the service-linked role for you. 

**Important**  
 This service-linked role can appear in your account if you completed an action in another service that uses the features supported by this role. To learn more, see [A New Role Appeared in My IAM Account](https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_roles.html#troubleshoot_roles_new-role-appeared).

### Creating a Service-Linked Role in Migration Hub (Console)


Use the Migration Hub console to create a service-linked role.

**To create a service-linked role (console)**

1. Open a web browser and navigate to the Migration Hub console at [console.aws.amazon.com/migrationhub](https://console.aws.amazon.com/migrationhub).

1. From the left navigation, under **Migrate** choose **Tools******

1. Scroll down to **Database migration tools**.

1. In the **Database Migration Service** box, choose **Connect**.

You can also use the IAM console to create a service-linked role for use with the AWS CLI or the AWS API. For more information, see [Creating a Service-Linked Role](https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#create-service-linked-role) in the *IAM User Guide*.

If you delete this service-linked role, and want need to create it again, use the same process. When you connect to AWS DMS in the Migration Hub console, Migration Hub creates the service-linked role for you again. 

## Editing a Service-Linked Role for Migration Hub


Migration Hub does not allow you to edit the AWSServiceRoleForMigrationHubDMSAccess service-linked role. After you create a service-linked role, you cannot change the name of the role because various entities might reference the role. However, you can edit the description of the role using IAM. For more information, see [Editing a Service-Linked Role](https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#edit-service-linked-role) in the *IAM User Guide*.

## Deleting a Service-Linked Role for Migration Hub


### Manually Delete the Service-Linked Role


Use the IAM console, the AWS CLI, or the AWS API to delete the AWSServiceRoleForMigrationHubDMSAccess service-linked role. For more information, see [Deleting a Service-Linked Role](https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#delete-service-linked-role) in the *IAM User Guide*.

## Supported Regions for Migration Hub Service-Linked Roles


Migration Hub supports using service-linked roles in the US West (Oregon) AWS Region, where the service is available.