AliyunServiceRoleForXtrace service-linked role
Managed Service for OpenTelemetry uses the AliyunServiceRoleForXtrace service-linked role to access other Alibaba Cloud services on your behalf. This role is automatically created the first time the service requires cross-service access and grants only the permissions necessary for monitoring and tracing operations.
A service-linked role is a Resource Access Management (RAM) role that only the linked service can assume. You cannot modify its permissions or assign it to other entities. For more information, see Service-linked roles.
When this role is created
Managed Service for OpenTelemetry automatically creates the AliyunServiceRoleForXtrace role when its monitoring feature first needs to access resources in the following services:
Permissions
The AliyunServiceRoleForXtrace role includes the following permissions, organized by service. Each section includes a summary of what the permissions allow, followed by the full policy definition.
Delete the AliyunServiceRoleForXtrace role
If you no longer need cross-service access for Managed Service for OpenTelemetry, delete the AliyunServiceRoleForXtrace role. After deletion, trace data can no longer be stored or displayed for the current account.
If any Managed Service for OpenTelemetry applications exist in your account, delete all applications before you delete the role.
Log on to the RAM console.
In the left-side navigation pane, choose .
On the Roles page, search for AliyunServiceRoleForXtrace.
Click Delete Role in the Actions column.
In the Delete Role dialog box, enter the role name and click Delete Role.
If the deletion fails, verify that all Managed Service for OpenTelemetry applications in the account have been deleted first.
FAQ
Why can't the system automatically create the AliyunServiceRoleForXtrace role for my RAM user?
The RAM user is missing the ram:CreateServiceLinkedRole permission. Attach the following policy to grant it:
{
"Statement": [
{
"Action": [
"ram:CreateServiceLinkedRole"
],
"Resource": "acs:ram:*:<your-alibaba-cloud-account-id>:role/*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": [
"xtrace.aliyuncs.com"
]
}
}
}
],
"Version": "1"
}Replace <your-alibaba-cloud-account-id> with the ID of your Alibaba Cloud account.