AliyunServiceRolePolicyForKMSKeyStore

AliyunServiceRolePolicyForKMSKeyStore 是专用于服务关联角色的授权策略,会在创建服务关联角色 AliyunServiceRoleForKMSKeyStore 时自动授权,以允许服务关联角色代您访问其他云服务。本策略由对应的阿里云服务按需更新,请勿将本策略授权给服务关联角色之外的 RAM 身份使用。

策略详情

  • 类型:系统策略

  • 创建时间:2025-09-17 10:58:54

  • 更新时间:2025-09-17 10:58:54

  • 当前版本:v1

策略内容

{
  "Version": "1",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "ecs:DescribeInstances",
        "ecs:InvokeCommand",
        "ecs:DescribeInvocationResults",
        "ecs:ListPluginStatus",
        "ecs:DescribeCloudAssistantStatus"
      ],
      "Resource": [
        "acs:ecs:*:*:instance/*",
        "acs:ecs:*:*:command/ACS-ECS-ExecuteLocalPlugin-for-linux.sh",
        "acs:ecs:*:*:command/ACS-ECS-ExecutePlugin-for-linux.sh",
        "acs:ecs:*:*:command/ACS-ECS-RemovePlugin-for-linux.sh"
      ]
    },
    {
      "Action": [
        "ecs:CreateNetworkInterfacePermission",
        "ecs:DeleteNetworkInterfacePermission",
        "ecs:CreateNetworkInterface",
        "ecs:DeleteNetworkInterface",
        "ecs:DescribeNetworkInterfaces",
        "ecs:DescribeSecurityGroups",
        "ecs:CreateSecurityGroup",
        "ecs:DeleteSecurityGroup",
        "ecs:AuthorizeSecurityGroup",
        "ecs:AuthorizeSecurityGroupEgress",
        "ecs:RevokeSecurityGroup",
        "ecs:RevokeSecurityGroupEgress",
        "ecs:DescribeSecurityGroupAttribute"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "vpc:DescribeVSwitches",
        "vpc:DescribeVpcs",
        "vpc:DescribeVSwitchAttributes"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "polardb:CreateDBCluster",
        "polardb:DescribeDBClusters",
        "polardb:CreateDatabase",
        "polardb:DescribeDatabases",
        "polardb:CreateAccount",
        "polardb:DescribeAccounts",
        "polardb:DescribeDBClusterEndpoints"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "yundun-hsm:DescribeInstances",
        "yundun-hsm:DescribeClusters",
        "yundun-hsm:GetCluster",
        "yundun-hsm:GetInstance",
        "yundun-hsm:DownloadClusterManagedCert"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "oss:GetObject",
        "oss:PutObject"
      ],
      "Resource": "acs:oss:*:*:*/AliyunDkmsLogs/*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "oss:GetBucketInfo"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": "pvtz:DescribeUserServiceStatus",
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": "bssapi:CreateInstance",
      "Resource": "*",
      "Effect": "Allow",
      "Condition": {
        "StringEquals": {
          "bssapi:ProductCode": "pvtz",
          "bssapi:ProductType": [
            "pvtzpost"
          ]
        }
      }
    },
    {
      "Action": [
        "log:CreateProject",
        "log:DeleteProject",
        "log:GetProject",
        "log:ListProject",
        "log:ListLogStores",
        "log:GetLogStore",
        "log:CreateIndex",
        "log:UpdateIndex",
        "log:GetIndex",
        "log:CreateDashboard",
        "log:UpdateDashboard",
        "log:ListDashboard",
        "log:CreateLogStore",
        "log:DeleteLogStore",
        "log:UpdateLogStore",
        "log:CreateSavedSearch",
        "log:UpdateSavedSearch",
        "log:ClearLogStoreStorage",
        "log:OpenProductDataCollection",
        "log:CloseProductDataCollection",
        "log:GetProductDataCollection"
      ],
      "Resource": [
        "acs:log:*:*:project/kms-log-*",
        "acs:kms:*:*:*"
      ],
      "Effect": "Allow"
    },
    {
      "Action": [
        "log:DescribeService",
        "log:EnableService"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "privatelink:ListVpcEndpointServiceUsers",
        "privatelink:GetVpcEndpointServiceAttribute"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": "ram:CreateServiceLinkedRole",
      "Resource": "*",
      "Effect": "Allow",
      "Condition": {
        "StringEquals": {
          "ram:ServiceName": [
            "securitylens.log.aliyuncs.com"
          ]
        }
      }
    },
    {
      "Action": "ram:DeleteServiceLinkedRole",
      "Resource": "*",
      "Effect": "Allow",
      "Condition": {
        "StringEquals": {
          "ram:ServiceName": "keystore.kms.aliyuncs.com"
        }
      }
    }
  ]
}

相关文档