This topic describes how to add an Elastic Compute Service (ECS) instance to a resource
group and authorize a Resource Access Management (RAM) user to view and manage the
ECS instance in the resource group.
Procedure
In this example, the RAM user Alice is authorized to view and manage only the ECS
instance i-001. You can add the ECS instance to a resource group and grant the permissions
on the resource group to Alice.
Note During the authorization process, the ECS instance can work as expected.
- Log on to the Resource Management console and create a resource group named ECS-Admin.
- In the Resource Management console, add the ECS instance i-001 to the resource group ECS-Admin.
You can use one of the following methods to add the ECS instance to the resource group:
- Log on to the RAM console and create a RAM user named Alice.
- In the RAM console, grant the required permissions to Alice.
In this step, set Authorization Scope to Specific Resource Group, enter ECS-Admin
in the field below, enter Alice in the Principal field, and then select the system
policy AliyunECSFullAccess. For more information, see
Grant permissions to the RAM user.

Note If you want to authorize Alice only to view the ECS instance, select the system policy
AliyunECSReadOnlyAccess in this step.
- Log on to the ECS console and view and manage the ECS instance.
- In the left-side navigation pane, choose .
- In the top navigation bar, select the resource group ECS-Admin.
- On the Instances page, view the information about the instance and manage the instance.