A política AliyunServiceRolePolicyForKMSKeyStore é exclusiva para funções vinculadas a service. O sistema anexa essa política automaticamente à função de service durante a criação, autorizando-a a acessar outros services em nuvem. O service relevante da Alibaba Cloud atualize esta política periodicamente. Não anexe esta política a nenhuma identidade do RAM que não seja uma função vinculada a service.
Detalhes da política
Tipo: política de sistema de service
Data de criação: 17 de setembro de 2025 às 10:58:54
Última atualização: 10 de julho de 2026 às 10:11:54
Versão atual: v15
Conteúdo da política
{
"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:AttachNetworkInterface",
"ecs:DetachNetworkInterface",
"ecs:AssignPrivateIpAddresses",
"ecs:UnassignPrivateIpAddresses",
"ecs:DescribeInstanceAttribute",
"ecs:ModifyNetworkInterfaceAttribute",
"ecs:DescribeNetworkInterfaceAttribute",
"ecs:DescribeInstances",
"ecs:AssignIpv6Addresses",
"ecs:UnassignIpv6Addresses",
"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:AllocateEipAddress",
"vpc:AssociateEipAddress",
"vpc:ReleaseEipAddress",
"vpc:UnassociateEipAddress",
"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:ListClusters",
"yundun-hsm:ListInstances",
"yundun-hsm:GetJob",
"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"
}
}
},
{
"Action": "ram:CreateServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": [
"middlewarelens.log.aliyuncs.com",
"ai-lens.log.aliyuncs.com",
"storagelens.log.aliyuncs.com"
]
}
}
}
]
}