本文为您介绍云原生数据仓库AnalyticDB PostgreSQL版(简称ADB PostgreSQL版)服务关联角色(AliyunServiceRoleForADBPG)的应用场景以及如何删除服务关联角色。

背景信息

ADB PostgreSQL版服务关联角色(AliyunServiceRoleForADBPG)是在某些情况下,为了完成ADB PostgreSQL版自身的某个功能,需要获取其他云服务的访问权限,而提供的RAM角色。更多关于服务关联角色的信息请参见服务关联角色

AliyunServiceRoleForADBPG介绍

角色名称:AliyunServiceRoleForADBPG

角色权限策略:AliyunServiceRolePolicyForADBPG

权限说明:

{
  "Version": "1",
  "Statement": [
    {
      "Action": [
        "ecs:CreateNetworkInterface",
        "ecs:DeleteNetworkInterface",
        "ecs:AttachNetworkInterface",
        "ecs:DetachNetworkInterface",
        "ecs:DescribeNetworkInterfaces",
        "ecs:CreateNetworkInterfacePermission",
        "ecs:DescribeNetworkInterfacePermissions",
        "ecs:CreateSecurityGroup",
        "ecs:DeleteSecurityGroup",
        "ecs:DescribeSecurityGroupAttribute",
        "ecs:DescribeSecurityGroups",
        "ecs:ModifySecurityGroupAttribute",
        "ecs:AuthorizeSecurityGroup",
        "ecs:AuthorizeSecurityGroupEgress",
        "ecs:RevokeSecurityGroup",
        "ecs:RevokeSecurityGroupEgress"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": "ram:DeleteServiceLinkedRole",
      "Resource": "*",
      "Effect": "Allow",
      "Condition": {
        "StringEquals": {
          "ram:ServiceName": "adbpg.aliyuncs.com"
        }
      }
    }
  ]
}

删除服务关联角色

如果您需要删除AliyunServiceRoleForADBPG(服务关联角色),需要先释放依赖这个服务角色的所有实例。