By default, only Alibaba Cloud accounts can use Cloud Shell. If a Resource Access Management (RAM) user needs to use Cloud Shell, you must authorize the RAM user.
Procedure
Log on to the RAM console by using your Alibaba Cloud account.
In the left-side navigation pane, choose IdentitiesUsers.
On the Users page, find the RAM user which you want to authorize, and click Add Permissions in the Actions column.
In the Add Permissions panel, grant permissions to the RAM user.
Select the authorization scope.
Alibaba Cloud Account: The authorization takes effect on the current Alibaba Cloud account.
Specific Resource Group: The authorization takes effect in a specific resource group.
NoteIf you select Specific Resource Group for Authorized Scope, make sure that the required cloud service supports resource groups. For more information, see Services that work with Resource Group.
Specify the principal.
The principal is the RAM user to which you want to grant permissions. By default, the current RAM user is specified. You can also specify another RAM user.
Select policies.
NoteYou can attach a maximum of five policies to a RAM user at a time. If you need to attach more than five policies to a RAM user, perform the operation multiple times.
Click OK.
Click Complete.
To grant the full read and write permissions on Cloud Shell, select the AliyunCloudShellFullAccess policy.
Custom policies
The system policy provided by Cloud Shell is a coarse-grained policy. To achieve fine-grained access control, you can create custom policies.
Before you create custom policies, you must familiarize yourself with the basic structure and syntax of the policies. For more information, see Policy structure and syntax.
Actions of custom policies
Action | Description |
cloudshell:CreateEnvironment | Creates a CloudShell instance environment. |
cloudshell:CreateSession | Connect to a CloudShell environment. |
cloudshell:DownloadFile | Download files from CloudShell to a local machine. |
cloudshell:UploadFile | Upload files from a local machine to CloudShell. |
cloudshell:AttachStorage | Attach a storage for CloudShell. |
cloudshell:DetachStorage | Detach a storage for CloudShell. |