This topic describes how to create a service-linked role for Resource Center, view the information about the service-linked role, and delete the service-linked role.
A service-linked role is a Resource Access Management (RAM) role whose trusted entity is an Alibaba Cloud service. Service-linked roles can implement authorized access across services. The following table provides information about the service-linked role for Resource Center.
|Service-linked role||Service identifier||Permission policy|
For more information, see Service-linked roles.
Resource Center assumes the service-linked role and accesses resources in other services to implement a global resource view and enable resource search across accounts, services, or regions.
Each time Resource Center retrieves cloud resources, an event is generated and recorded in ActionTrail. This facilitates security compliance auditing in the future.
Create the service-linked role
The system automatically creates the service-linked role when you perform the following operations:
- Activate Resource Center. In this case, the system creates the service-linked role only for Resource Center. For more information, see Activate Resource Center.
- Enable the cross-account resource search feature. In this case, the system creates the service-linked role for each member in your resource directory. For more information, see Enable cross-account resource search.
View the information about the service-linked role
After the service-linked role is created, you can log on to the RAM console with the management account of your resource directory, go to the Roles page, and search for AliyunServiceRoleForResourceMetaCenter. Then, you can view the following information about the service-linked role on the role details page:
- Basic information
In the Basic Information section, you can view the basic information about the role, such as the name, creation time, Alibaba Cloud Resource Name (ARN), and description.
- Permission policy
On the Permissions tab, you can click the policy name to view the policy document.Note You cannot view the permission policy that is attached to a service-linked role on the Policies page of the RAM console. You can view the permission policy only on the role details page.
- Trust policy
On the Trust Policy Management tab, you can view the document of the trust policy that is attached to the role. A trust policy is a policy that contains the trusted entities of a RAM role. A trusted entity refers to an entity that can assume the RAM role. The trusted entity of a service-linked role is a cloud service. You can view the value of the
Servicefield in the trust policy of the service-linked role to obtain the trusted entity.
For more information about how to view a service-linked role, see View the information about a RAM role.
Delete the service-linked role
If you do not use Resource Center for a long period of time or you want to delete your Alibaba Cloud account, you may need to manually delete the service-linked role.
If the service-linked role is not used by cloud resources, you can manually delete the service-linked role in the RAM console. For more information, see Delete a RAM role.