If you are a first-time user of Deep Learning Containers (DLC), you must first assign a service-linked role to DLC so that DLC can access the required resources. In addition, if you use Object Storage Service (OSS) for storage, you must grant the service-linked role of DLC the permissions to access OSS. This topic describes how to grant permissions to a service-linked role of DLC.
Background information
Grant your RAM user the permissions to manage DLC
Make sure that the RAM user that you use has the permissions to manage DLC. This ensures that DLC can provide service as normal. You need to grant the RAM user the permissions when you Activate PAI and create the default workspace. You can refer to Check whether the AliyunPAIDLCDefaultRole role is assigned to DLC to check whether the RAM user has the permissions to manage DLC. If the RAM user does not have the required permissions, refer to the following section and grant the required permissions to the RAM user.
- Go to the DLC tab.
- Log on to the Machine Learning Platform for AI console.
- In the left-side navigation pane, choose to go to the DLC tab.
- Assign the AliyunPAIDLCDefaultRole role to the RAM user.
- Grant the AliyunOSSFullAccess permission to the AliyunPAIDLCDefaultRole role. After you complete the preceding steps, the RAM user that you use has the permissions of the DLC default role. You must also grant the RAM user the permissions to manage OSS so that DLC can work as normal. This section describes the procedure.
- Add the PaiDlcOAuthPolicy permission to the AliyunPAIDLCDefaultRole role so that DLC can work as normal. Perform the following steps:
- View the authorization result. After you complete the preceding steps, click AliyunPAIDLCDefaultRole to check whether the policy that is attached to the role is accurate.
Grant a RAM user specific permissions to manage DLC jobs
- To grant a RAM user the permissions to manage self-created DLC jobs, you must assign the Administrator, Algorithm Developer, and Algorithm Operator roles to the RAM user in the corresponding workspace. For more information, see Manage the members of a workspace.
- To grant a RAM user the permissions to manage DLC jobs that are created by other accounts, you must assign the Administrator and Algorithm Operator roles to the RAM user in the corresponding workspace. For more information, see Manage the members of a workspace.
Grant Machine Learning Platform for AI the permissions to access OSS and NAS
- Log on to the Machine Learning Platform for AI console.
- In the left-side navigation pane, choose Resource Management > Dependent Services. In the DSW section, find OSS and NAS.
- View the authorization details of OSS in the Actions column.
- If Machine Learning Platform for AI is not granted the permissions to access OSS, click Authorize Now in the Actions column and grant the permissions to Machine Learning Platform for AI by following the on-screen instructions.
- If Machine Learning Platform for AI is granted the permissions to access OSS, click View Authorization in the Actions column to view the authorization details.
Check whether the AliyunPAIDLCDefaultRole role is assigned to DLC
- Log on to the RAM console.
- In the left-side navigation pane, choose Identities > Roles.
- In the search box of the Roles page, search for AliyunPAIDLCDefaultRole.
- If the role is displayed in the search result, the role is assigned to DLC.
- If the role is not displayed in the search result, you must grant the role to DLC.