This topic describes how to use Resource Access Management (RAM) to control the access of Alibaba Cloud accounts to Cloud Storage Gateway (CSG). To implement access control, you must create RAM users or groups, and grant required permissions to the users or groups.
Background information
RAM is an Alibaba Cloud access control service that allows you to implement shared access without exposing the AccessKey pair of an Alibaba Cloud account. You can grant users the minimum permissions as needed, which helps improve data security. For more information, see What is RAM?
RAM users: If multiple users in your organization need to access your gateways, you can create a policy to allow specified users to access the gateways. This prevents leakage risks that arise from sharing your AccessKey pair and improves account security.
RAM user groups: You can create multiple user groups and grant different permissions to each user group. This allows you to manage users in the same group at the same time.
Create a RAM user
Use your Alibaba Cloud account to log on to the RAM console.
In the left-side navigation pane, choose and click Create User.
Configure user account information.
Specify the allowed access methods. You can select Console Access, OpenAPI Access, or both.
Select Reset Custom Password for Set Logon Password, enter an initial password, and select Required at Next Logon for Password Reset.
(Optional )Select Required for Enable MFA and then click OK.
Save the user name, password, and AccessKey pair of the account.
NoteWe recommend that you immediately save the AccessKey pair and keep it strictly confidential.
Create a group
If you have multiple RAM users within your Alibaba Cloud account, you can create RAM user groups to classify and authorize these RAM users. This simplifies the management of RAM users and permissions.
Use your Alibaba Cloud account to log on to the RAM console.
In the left-navigation pane, choose and click Create User Group.
Specify a user group name and display name, and click OK.
Grant permissions to the RAM user or group
By default, a RAM user or group does not have permissions. You must use the console or call related API operations to grant permissions to the RAM user or group before you use the user or group to manage resources. The following example describes how to grant permissions to a RAM user.
On the Users page, select the RAM user, and then click Add Permissions in the Actions column.
In the Add Permissions panel, select the policy that you want to attach to the RAM user.
To access on-premises gateways, you need to attach only the AliyunHCSSGWFullAccess and AliyunOSSFullAccess policies to the user. To access gateways deployed on Alibaba Cloud, you must attach the following policies to the RAM user:
AliyunHCSSGWFullAccess: provides full access to CSG.
AliyunOSSFullAccess: provides full access to Object Storage Service (OSS).
AliyunVPCFullAccess: provides full access to Virtual Private Cloud (VPC).
AliyunECSFullAccess: provides full access to Elastic Compute Service (ECS).