Grant DTS access to cloud resources
Global Distributed Cache requires Data Transmission Service (DTS) to access your cloud resources. Create a default role named AliyunDTSDefaultRole and attach the AliyunDTSRolePolicy system policy to grant this access. This one-time setup does not affect the performance of your ApsaraDB for MongoDB instances.
If you log in to the RAM console with your primary account and the required permissions already exist, skip these steps and proceed to create a Global Distributed Cache instance group.
Prerequisites
An Alibaba Cloud account is created. For more information, see Register an Alibaba Cloud account.
You must use your primary account to grant the permissions.
Permission policy
The AliyunDTSRolePolicy system policy for the AliyunDTSDefaultRole default role includes partial management permissions for cloud resources such as ApsaraDB for RDS, Elastic Compute Service (ECS), PolarDB, ApsaraDB for MongoDB, ApsaraDB for Redis, PolarDB-X, DataHub, and Elasticsearch. For a detailed definition of the permissions, see AliyunDTSRolePolicy.
For more information about permission policies, see Syntax and structure of permission policies.
Method 1: Quick authorization (Recommended)
Log in with your primary account and go to the AliyunDTSDefaultRole quick authorization page. In the Authorize Access to Cloud Resources dialog box, click Confirm Authorization. A success message confirms the authorization is complete.
Method 2: Use the RAM console
-
Find the default role.
-
Use an Alibaba Cloud account to log on to the RAM console.
-
Optional: In the left-side navigation pane, choose .
-
In the search box to the right of Create Role, enter AliyunDTSDefaultRole and search for the role.
NoteIf the AliyunDTSDefaultRole role does not exist, we recommend that you use Method 1.
-
-
In the search results, click AliyunDTSDefaultRole.
-
Grant precise permissions to the target RAM role.
-
On the Permissions tab, click Precise Permission.
-
Optional: In the Precise Permission panel, set Policy Type to System Policy.
-
In the Policy Name text box, enter AliyunDTSRolePolicy.
-
Click OK.
On the Permissions tab, you can click the
refresh icon to check whether the permission is granted.
-
-
After the permission is granted, click Close.
Verify the authorization
You can follow these steps to verify the authorization for the default role.
-
Use an Alibaba Cloud account to log on to the RAM console.
-
Optional: In the left-side navigation pane, choose .
-
In the search box to the right of Create Role, enter AliyunDTSDefaultRole and search for the role.
-
In the search results, click AliyunDTSDefaultRole.
-
View the details of the AliyunDTSDefaultRole role.
-
The authorization is successful if the AliyunDTSDefaultRole role meets both of the following conditions:
-
The Trust Policy contains
dts.aliyuncs.com.Specifically, the
Servicefield in thePrincipalsection of the trust policy JSON containsdts.aliyuncs.com. To modify the trust policy, click Edit Trust Policy. -
The Permissions tab contains the AliyunDTSRolePolicy system policy.
-
-
If the AliyunDTSDefaultRole role does not meet these conditions, the authorization has failed, and you must authorize the role again.
You can delete the AliyunDTSDefaultRole role and authorize it again.
Note-
We recommend that you use Method 1.
-
For more information about how to delete a RAM role, see Delete a RAM role.
-
-