This topic describes the AliyunServiceRoleForEMRStarRocks service-linked role for EMR StarRocks and explains how to delete it.
Background information
The AliyunServiceRoleForEMRStarRocks service-linked role is a Resource Access Management (RAM) role that EMR StarRocks assumes to access other Alibaba Cloud services and enable specific features.
For more information about service-linked roles, see Service-linked roles.
Scenarios for AliyunServiceRoleForEMRStarRocks
When EMR StarRocks needs to access resources from Server Load Balancer (SLB), Elastic Computing Service (ECS), and virtual private cloud (VPC), it assumes the automatically created AliyunServiceRoleForEMRStarRocks service-linked role to obtain the required access permissions.
Permissions of AliyunServiceRoleForEMRStarRocks
AliyunServiceRoleForEMRStarRocks has the permissions to access the following Alibaba Cloud services.
Delete AliyunServiceRoleForEMRStarRocks
After you delete AliyunServiceRoleForEMRStarRocks, you cannot use features in the EMR Serverless StarRocks console.
-
Log on to the RAM console as a RAM administrator.
-
In the navigation pane on the left, choose .
-
On the Roles page, enter AliyunServiceRoleForEMRStarRocks in the search box to find the RAM role.
-
In the Actions column for the AliyunServiceRoleForEMRStarRocks role, click Delete Role.
-
In the dialog box, enter the role name and click Delete Role.
-
If no EMR StarRocks instances are in use in your account, you can directly delete AliyunServiceRoleForEMRStarRocks.
-
If EMR StarRocks instances are in use in your account, you must first release the instances before you can delete AliyunServiceRoleForEMRStarRocks. Otherwise, the deletion fails.
-
FAQ
Q: Why can't my RAM user automatically create the AliyunServiceRoleForEMRStarRocks service-linked role for EMR StarRocks?
A: The RAM user must have specific permissions to automatically create or delete AliyunServiceRoleForEMRStarRocks. If a RAM user cannot automatically create the role, grant the following access policy to the user. For more information, see Manage permissions on a RAM role.
{
"Statement": [
{
"Action": [
"ram:CreateServiceLinkedRole"
],
"Resource": "acs:ram:*:Alibaba Cloud account ID:role/*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": [
"starrocks.aliyuncs.com"
]
}
}
}
],
"Version": "1"
}
Alibaba Cloud account ID: Replace this with your Alibaba Cloud account ID.