Service-linked role for Amazon DMS Serverless
Amazon DMS Serverless uses the service-linked role named AWSServiceRoleForDMSServerless. Amazon DMS uses this service-linked role to create and manage Amazon DMS resources on your behalf. Amazon DMS uses this role for automatic instance management so that you only have to manage replications.
The AWSServiceRoleForDMSServerless service-linked role trusts the following services to assume the role:
-
dms.amazonaws.com
You must configure permissions to allow an IAM entity, such as a user, group, or role, to create, edit, or delete a service-linked role. For more information, see Service-linked role permissions in the IAM User Guide.
Creating a service-linked role for Amazon DMS Serverless
When you create a replication, Amazon DMS serverless programmatically creates a Amazon DMS
serverless service linked role. You can view this role in the IAM console. You can also
choose to create this role manually. To create the role manually, use the IAM console to
create a service-linked role with the DMS use case. In the Amazon CLI or the
Amazon API, create a service-linked role using dms.amazonaws.com
for the service
name. For more information, see Creating a service-linked role in the
IAM User Guide. If you delete this service-linked role, you can use
this same process to create the role again.
Note
If you delete a role while you have replications in your account, the replication results in a failure.
Editing a service-linked role for Amazon DMS Serverless
Amazon DMS doesn't allow you to edit the AWSServiceRoleForDMSServerless service-linked role. After you create a service-linked role, you can't 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 in the IAM User Guide.
Deleting a service-linked role for Amazon DMS Serverless
If you no longer need to use a feature or service that requires a service-linked role, we recommend that you delete that role. Thus, you don’t have an unused entity that isn't actively monitored or maintained. However, you must clean up the resources for your service-linked role before you can manually delete it.
Note
If the Amazon DMS service is using the role when you try to delete the resources, then the deletion might fail. If that happens, wait for a few minutes and try the operation again.
To delete Amazon DMS resources used by the AWSServiceRoleForDMSServerless
-
Sign in to the Amazon Web Services Management Console and open the Amazon DMS console at https://console.aws.amazon.com/dms/v2/
. -
In the navigation pane, choose Serverless under Discover. The Serverless page opens.
-
Choose your serverless replication and choose Delete.
-
To confirm deletion, enter the serverless replication name in the text input field. Next, choose Delete.
After you delete all serverless replications, you can delete the service-linked role.
To manually delete the service-linked role using IAM
Use the IAM console, the Amazon CLI, or the Amazon API to delete the AWSServiceRoleForDMSServerless service-linked role. For more information, see Deleting a service-linked role in the IAM User Guide.
Supported regions for Amazon DMS Serverless service-linked roles
Amazon DMS Serverless supports using service-linked roles in all of the regions where the service is available.