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

  1. Log on to the RAM console by using your Alibaba Cloud account.
  2. In the left-side navigation pane, choose Identities > Roles.
  3. On the Roles page, click Create Role.
  4. In the Create Role panel, select Alibaba Cloud Service for the Select Trusted Entity parameter and click Next.
  5. Select Normal Service Role for the Role Type parameter.
  6. 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

  1. On the Roles page, click AutoLearningRole in the Role Name column.
  2. On the basic information page of this RAM role, click the Trust Policy Management tab.
  3. Click Edit Trust Policy.
  4. 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

  1. On the Roles page, click AutoLearningRole in the Role Name column.
  2. On the basic information page of this RAM role, click the Permissions tab and then click Grant Permission.
  3. In the Grant Permission panel, select the AliyunOSSFullAccess policy from the list of system policies in the Select Policy section.
  4. Click OK.