本文為您介紹計算巢服務關聯角色AliyunServiceRoleForComputeNestSupplier、AliyunServiceRoleForComputeNestUser和AliyunServiceRoleForComputeNestDingTalk的應用場景以及如何刪除服務關聯角色。
背景信息
計算巢服務關聯角色AliyunServiceRoleForComputeNestSupplier是計算巢服務商側為了完成某個服務創建時,需要獲取其他云服務的訪問權限而提供的RAM角色。更多關于服務關聯角色的信息請參見 服務關聯角色。
計算巢服務關聯角色AliyunServiceRoleForComputeNestUser是計算巢用戶側為了完成某個服務實例創建時,需要獲取其他云服務的訪問權限而提供的RAM角色。更多關于服務關聯角色的信息請參見 服務關聯角色。
計算巢服務關聯角色AliyunServiceRoleForComputeNestDingTalk是計算巢服務為了訪問計算巢釘釘應用下的云產品資源時,需要獲取其他云服務的訪問權限而提供的RAM角色。更多關于服務關聯角色的信息請參見 服務關聯角色。
應用場景
在計算巢控制臺服務商側創建服務或用戶側創建服務實例時,計算巢會自動創建服務關聯角色AliyunServiceRoleForComputeNestSupplier或AliyunServiceRoleForComputeNestUser以獲取私網連接、云解析、云監控、標簽、訪問控制等服務的訪問權限。
在計算巢服務訪問釘釘應用下的云產品資源時,計算巢會自動創建服務關聯角色AliyunServiceRoleForComputeNestDingTalk以獲取云服務器,云數據庫,專有網絡,運維編排等服務的訪問權限。
AliyunServiceRoleForComputeNestSupplier
服務商側創建計算巢服務時,如果角色不存在,計算巢服務會自動創建一個名稱為AliyunServiceRoleForComputeNestSupplier的服務關聯角色,該角色被授權的權限策略為AliyunServiceRolePolicyForComputeNestSupplier,計算巢服務通過扮演該角色即可成功調用OpenAPI完成服務創建。
權限說明:
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": [
"PrivateLink:UpdateVpcEndpointServiceAttribute",
"PrivateLink:GetVpcEndpointServiceAttribute",
"PrivateLink:ListVpcEndpointServices",
"PrivateLink:AddUserToVpcEndpointService",
"PrivateLink:ListVpcEndpointServiceUsers",
"PrivateLink:RemoveUserFromVpcEndpointService"
],
"Resource": [
"*"
],
"Condition": {}
},
{
"Action": "ram:DeleteServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": "supplier.computenest.aliyuncs.com"
}
}
}
]
}
AliyunServiceRoleForComputeNestUser
用戶側創建計算巢服務實例時,如果角色不存在,計算巢會自動創建一個名稱為AliyunServiceRoleForComputeNestUser的服務關聯角色,該角色被授權的權限策略為AliyunServiceRolePolicyForComputeNestUser,計算巢服務通過扮演該角色即可成功調用OpenAPI完成服務實例創建。
權限說明:
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": [
"PrivateLink:CreateVpcEndpoint",
"PrivateLink:UpdateVpcEndpointAttribute",
"PrivateLink:GetVpcEndpointAttribute",
"PrivateLink:ListVpcEndpoints",
"PrivateLink:ListVpcEndpointServicesByEndUser",
"PrivateLink:DeleteVpcEndpoint",
"PrivateLink:EnableVpcEndpointConnection",
"PrivateLink:UpdateVpcEndpointConnectionAttribute",
"PrivateLink:ListVpcEndpointConnections",
"PrivateLink:DisableVpcEndpointConnection",
"PrivateLink:RemoveZoneFromVpcEndpoint",
"pvtz:DescribeZones",
"pvtz:AddZone",
"pvtz:BindZoneVpc",
"pvtz:AddZoneRecord",
"pvtz:DeleteZoneRecord",
"pvtz:DeleteZone",
"ros:ListStackResources",
"tag:ListTagResources",
"cms:CreateDynamicTagGroup",
"cms:DescribeDynamicTagRuleList",
"cms:DescribeMonitorGroups",
"cms:DeleteDynamicTagGroup"
],
"Resource": [
"*"
],
"Condition": {}
},
{
"Action": [
"ram:CreateRole",
"ram:DeleteRole",
"ram:AttachPolicyToRole",
"ram:DetachPolicyFromRole",
],
"Resource": [
"acs:ram:*:*:role/aliyuncomputenestsupplierrolefor*",
"acs:ram:*:system:policy/AliyunComputeNestPolicyForSupplierRole"
],
"Effect": "Allow"
},
{
"Action": "ram:DeleteServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": "user.computenest.aliyuncs.com"
}
}
}
]
}
AliyunServiceRoleForComputeNestDingTalk
計算巢服務訪問釘釘應用下的云產品資源時,如果角色不存在,計算巢會自動創建一個名稱為AliyunServiceRoleForComputeNestDingTalk的服務關聯角色,該角色被授權的權限策略為AliyunServiceRoleForComputeNestDingTalk,計算巢服務通過扮演該角色即可管理應用管理中的資源,以完成計算巢的相關功能。
權限說明:
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ecs:DescribeInstances",
"ecs:DescribeSecurityGroups",
"ecs:DescribeDisks",
"ecs:DescribeImages",
"ecs:DescribeVpcs",
"ecs:DescribeVSwitches",
"vpc:DescribeVpcs",
"vpc:DescribeEipAddresses",
"rds:DescribeDBInstances",
"rds:DescribeDBInstanceAttribute",
"slb:DescribeLoadBalancers",
"slb:DescribeLoadBalancerAttribute",
"oos:CreateApplication",
"oos:DeleteApplication",
"oos:ListApplications",
"oos:ListApplicationGroups",
"oos:GetApplication",
"oos:UpdateApplication",
"oos:CreateApplicationGroup",
"tag:TagResources",
"tag:ListTagResources",
"yundun-sddp:DescribeDataLimits",
"yundun-sddp:DescribeDataLimitDetail",
"yundun-sddp:DescribeRules",
"yundun-sddp:DescribeInstances",
"yundun-sddp:DescribeEvents",
"yundun-sddp:DescribeDataAssets",
"yundun-sddp:DescribeCategoryTemplateRuleList",
"yundun-sas:DescribeCloudCenterInstances"
],
"Resource": [
"*"
],
"Condition": {}
},
{
"Action": "ram:CreateServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": "applicationmanager.oos.aliyuncs.com"
}
}
},
{
"Action": "ram:DeleteServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": "dingtalk.computenest.aliyuncs.com"
}
}
}
]
}
刪除服務關聯角色
如果您需要刪除服務關聯角色AliyunServiceRoleForComputeNestSupplier,需要刪除服務商賬號下的所有服務。而刪除AliyunServiceRoleForComputeNestUser時,需先刪除用戶賬號下的所有服務實例。
以下為刪除AliyunServiceRoleForComputeNestUser角色的示例:
登錄RAM控制臺。
在左側導航欄中,選擇
,在角色界面的搜索框中,輸入AliyunServiceRoleForComputeNestUser,自動搜索到名稱為AliyunServiceRoleForComputeNestUser的RAM角色。在右側操作列,單擊刪除角色。
在刪除RAM角色對話框中,單擊刪除角色。
刪除服務關聯角色具體操作請參考 服務關聯角色。
常見問題
1. 為什么我的RAM用戶無法自動創建計算巢服務商側服務關聯角色AliyunServiceRoleForComputeNestSupplier?
您需要擁有指定的權限,才能自動創建AliyunServiceRoleForComputeNestSupplier。因此,在RAM用戶無法自動創建AliyunServiceRoleForComputeNestSupplier時,您需為其添加以下權限策略。
{
"Statement": [
{
"Action": [
"ram:CreateServiceLinkedRole"
],
"Resource": "acs:主賬號ID:role/*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": [
"supplier.computenest.aliyuncs.com"
]
}
}
}
],
"Version": "1"
}
2. 為什么我的RAM用戶無法自動創建計算巢用戶側服務關聯角色AliyunServiceRoleForComputeNestUser?
您需要擁有指定的權限,才能自動創建AliyunServiceRoleForComputeNestUser。因此,在RAM用戶無法自動創建AliyunServiceRoleForComputeNestUser時,您需為其添加以下權限策略。
{
"Statement": [
{
"Action": [
"ram:CreateServiceLinkedRole"
],
"Resource": "acs:主賬號ID:role/*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": [
"user.computenest.aliyuncs.com"
]
}
}
}
],
"Version": "1"
}
3.為什么我的RAM用戶無法自動創建計算巢用戶側服務關聯角色AliyunServiceRoleForComputeNestDingTalk?
您需要擁有指定的權限,才能自動創建AliyunServiceRoleForComputeNestDingTalk。因此,在RAM用戶無法自動創建AliyunServiceRoleForComputeNestDingTalk時,您需為其添加以下權限策略。
{
"Statement": [
{
"Action": [
"ram:CreateServiceLinkedRole"
],
"Resource": "acs:主賬號ID:role/*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": [
"user.computenest.aliyuncs.com"
]
}
}
}
],
"Version": "1"
}