The data that is used for model training in Scenario-based Solution is stored in Object Storage Service (OSS). Therefore, a Resource Access Management (RAM) role must be created and granted permissions so that Scenario-based Solution can use this RAM role to access OSS.
Step 1: Create a RAM role
- Log on to the RAM console by using your Alibaba Cloud account.
- In the left-side navigation pane, choose .
- On the Roles page, click Create Role.
- In the Create Role panel, select Alibaba Cloud Service for the Select Trusted Entity parameter and click Next.
- Select Normal Service Role for the Role Type parameter.
- Set RAM Role Name to AutoLearningRole and Select Trusted Service to Media Transcoding Service. Then, click OK.
Step 2: Modify the trust policy of the RAM role
- On the Roles page, click AutoLearningRole in the Role Name column.
- On the basic information page of this RAM role, click the Trust Policy Management tab.
- Click Edit Trust Policy.
- In the Edit Trust Policy panel, modify the trust policy by using the following content. Then, click OK.
{ "Statement": [ { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": { "Service": [ "129***@odps.aliyuncs.com" ] } } ], "Version": "1" }
Step 3: Authorize the RAM role
- On the Roles page, click AutoLearningRole in the Role Name column.
- On the basic information page of this RAM role, click the Permissions tab and then click Grant Permission.
- In the Grant Permission panel, select the AliyunOSSFullAccess policy from the list of system policies in the Select Policy section.
- Click OK.