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

背景信息

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

AliyunServiceRoleForAnalyticDBForMySQL介绍

角色名称:AliyunServiceRoleForAnalyticDBForMySQL

角色权限策略:AliyunServiceRolePolicyForAnalyticDBForMySQL

权限说明:

{
  "Version": "1",
  "Statement": [
    {
      "Action": [
        "log:GetProject",
        "log:ListProject",
        "log:GetCursorTime",
        "log:GetLogs",
        "log:GetHistograms",
        "log:GetContextLogs",
        "log:GetLogStoreLogs",
        "log:GetLogStoreHistogram",
        "log:GetLogStore",
        "log:ListLogStores",
        "log:GetConfig",
        "log:ListConfig",
        "log:GetShipperStatus",
        "log:GetCheckPoint",
        "log:HeartBeat",
        "log:UpdateCheckPoint",
        "log:PostLogStoreLogs",
        "log:CreateConsumerGroup",
        "log:UpdateConsumerGroup",
        "log:DeleteConsumerGroup",
        "log:ListConsumerGroup",
        "log:ConsumerGroupUpdateCheckPoint",
        "log:ConsumerGroupHeartBeat",
        "log:GetConsumerGroupCheckPoint",
        "log:CreateExport",
        "log:GetExport",
        "log:ListExport",
        "log:UpdateExport",
        "log:DeleteExport",
        "log:CreateJob",
        "log:GetJob",
        "log:ListJobs",
        "log:UpdateJob",
        "log:DeleteJob",
        "log:GetCursor",
        "log:PullLogs",
        "log:GetCursorOrData",
        "log:ListShards",
        "dts:CreateSynchronizationJob",
        "dts:ConfigureSynchronizationJob",
        "dts:DescribeSynchronizationJobStatus",
        "dts:StartSynchronizationJob",
        "dts:DeleteSynchronizationJob",
        "dts:DescribeSynchronizationJobs"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": "ram:DeleteServiceLinkedRole",
      "Resource": "*",
      "Effect": "Allow",
      "Condition": {
        "StringEquals": {
          "ram:ServiceName": "ads.aliyuncs.com"
        }
      }
    }
  ]
}

删除服务关联角色

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