This topic describes how to create a RAM role and grant permissions to the RAM role
before you use the role to decrypt and play videos.
Create a role
- Log on to the RAM console by using your Alibaba Cloud account.
- In the left-side navigation pane, click RAM Roles.
- On the RAM Roles page, click Create RAM Role.
- In the Create RAM Role pane, set the Trusted Entity Type parameter to Alibaba Cloud Account, and then click Next.
- Specify the RAM Role Name and Note parameters.
- Select Current Alibaba Cloud Account in the Select Trusted Alibaba Cloud Account field and click OK.
Note If you select Other Alibaba Cloud Account, you must enter the ID of the Alibaba Cloud account.
Grant permissions to a role
- Grant permissions to the RAM role.
- On the Roles page, find the RAM role you create and click Add Permissions in the Actions column.
- In the Add Permissions panel, set the Authorized Scope parameter to Alibaba Cloud Account.
Authorized scope |
Description |
Alibaba Cloud Account |
The permissions granted to the RAM user take effect on resources within the current
Alibaba Cloud account.
|
Specific Resource Group |
The permissions granted to the RAM user take effect on resources in the specified
resource group.
|
- In the Principal field, the system automatically enters the name of the current RAM role.
- In the Select Policy section, click System Policy, select one or more required policies in the policy list, and then click OK. The policies are attached to the RAM role. Click Complete.
Note If you want to grant, modify, or revoke the Security Token Service (STS) permissions
of a RAM user, perform this step and configure the settings as required.
- Associate the RAM user with the RAM role.
- In the left-side navigation pane, choose . On the Policies page, click Create Policy.
- On the Create Policy page, click the JSON tab.
- In the code editor, assign the value of the ARN parameter you obtained to the Resource parameter. Specify the Action parameter based on your needs. Click Next.
- In the Basic Information section of the Create Policy page, enter a policy name in the Name field and click OK.
- In the left-side navigation pane, choose .
- Find the RAM user you create and click Add Permissions in the Actions column.
- In the Select Policy section of the Add Permissions panel, click Custom Policy, select the required policies in the policy list, and then click OK. The permissions are granted.