全部產品
Search
文件中心

Cloud Enterprise Network:AliyunServiceRoleForCEN

更新時間:Jun 30, 2024

本文為您介紹服務關聯角色AliyunServiceRoleForCEN以及如何刪除該服務關聯角色。

背景資訊

服務關聯角色SLR(Service Linked Role)是指與某個雲端服務關聯的RAM角色。在某些情境下,為了完成雲端服務的某個功能,需要擷取其他雲端服務的存取權限。通過服務關聯角色,您可以更好地建立雲端服務正常操作所需的許可權,避免誤操作帶來的風險。關於服務關聯角色的更多資訊,請參見服務關聯角色

建立服務關聯角色AliyunServiceRoleForCEN

您在企業版轉寄路由器中建立Virtual Private Cloud(Virtual Private Cloud)網路執行個體串連時,系統將會為您自動建立一個名稱為AliyunServiceRoleForCEN的服務關聯角色,並且為該角色添加名稱為AliyunServiceRolePolicyForCEN的權限原則,該許可權會允許企業版轉寄路由器在VPC中建立彈性網卡,作為VPC發往企業版轉寄路由器的流量入口。權限原則內容如下:

說明

如果服務關聯角色AliyunServiceRoleForCEN已存在,系統則不會重複建立。

{
  "Version": "1",
  "Statement": [
    {
      "Action": [
        "vpc:DescribeVSwitchAttributes",
        "vpc:CreateRouteEntries",
        "vpc:DeleteRouteEntries",
        "vpc:DescribeRouteEntryList",
        "vpc:GetVpcRouteEntrySummary"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "ecs:CreateNetworkInterface",
        "ecs:CreateSecurityGroup",
        "ecs:AuthorizeSecurityGroup",
        "ecs:RevokeSecurityGroup",
        "ecs:DeleteSecurityGroup",
        "ecs:JoinSecurityGroup",
        "ecs:DeleteSecurityGroup",
        "ecs:LeaveSecurityGroup",
        "ecs:DescribeSecurityGroups",
        "ecs:AttachNetworkInterface",
        "ecs:DetachNetworkInterface",
        "ecs:DeleteNetworkInterface",
        "ecs:DescribeNetworkInterfaces",
        "ecs:CreateNetworkInterfacePermission",
        "ecs:DescribeNetworkInterfacePermissions",
        "ecs:DeleteNetworkInterfacePermission",
        "ecs:CreateSecurityGroupPermission",
        "ecs:AuthorizeSecurityGroupPermission",
        "ecs:RevokeSecurityGroupPermission",
        "ecs:DeleteSecurityGroupPermission",
        "ecs:JoinSecurityGroupPermission",
        "ecs:DeleteSecurityGroupPermission",
        "ecs:LeaveSecurityGroupPermission",
        "ecs:DescribeSecurityGroupPermissions",
        "ecs:AttachNetworkInterfacePermissions",
        "ecs:DetachNetworkInterfacePermissions"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "expressconnectrouter:CreateExpressConnectRouterAssociation",
        "expressconnectrouter:DeleteExpressConnectRouterAssociation"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": "ram:DeleteServiceLinkedRole",
      "Resource": "*",
      "Effect": "Allow",
      "Condition": {
        "StringEquals": {
          "ram:ServiceName": "cen.aliyuncs.com"
        }
      }
    }
  ]
}

刪除服務關聯角色AliyunServiceRoleForCEN

系統不會自動刪除服務關聯角色AliyunServiceRoleForCEN。如果您要刪除服務關聯角色AliyunServiceRoleForCEN,請先刪除所有雲企業網執行個體下企業版轉寄路由器下的VPC網路執行個體串連。具體操作,請參見:

相關文檔

建立VPC串連