AliyunServiceRolePolicyForMongoDB is the authorization policy dedicated to a service-linked role. The policy is automatically attached to a service role when the service role is created. Then, the service-linked role is authorized to access other cloud services. This policy is updated by the relevant Alibaba Cloud service. Do not attach this policy to a RAM identity other than a service-linked role.
Policy details
Type: service system policy
Creation time: 18:06:05 on October 12, 2020
Update time: 02:55:59 on April 22, 2026
Current version: v10
Policy content
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Resource": "acs:log:*:*:project/nosql-*",
"Action": [
"log:GetLogstoreLogs",
"log:ListLogStores",
"log:GetLogStore",
"log:GetIndex",
"log:GetLogstoreHistogram",
"log:GetConfig",
"log:ListConfig",
"log:GetDashboard",
"log:ListDashboard",
"log:CreateLogStore",
"log:CreateIndex",
"log:UpdateIndex",
"log:CreateDashboard",
"log:UpdateDashboard",
"log:CreateSavedSearch",
"log:UpdateSavedSearch",
"log:CreateProject",
"log:UpdateLogStore"
]
},
{
"Action": [
"kms:ListKeys",
"kms:ListKeyVersions",
"kms:ListAliases",
"kms:ListAliasesByKeyId",
"kms:ListResourceTags",
"kms:DescribeKey",
"kms:TagResource",
"kms:UntagResource",
"kms:OpenKmsService",
"kms:DescribeAccountKmsStatus"
],
"Resource": "acs:kms:*:*:*",
"Effect": "Allow"
},
{
"Action": [
"kms:Encrypt",
"kms:Decrypt",
"kms:GenerateDataKey",
"kms:CreateAlias"
],
"Resource": "acs:kms:*:*:*",
"Effect": "Allow",
"Condition": {
"StringEqualsIgnoreCase": {
"kms:tag/acs:rds:instance-encryption": "true"
}
}
},
{
"Action": "ram:DeleteServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": "mongodb.aliyuncs.com"
}
}
},
{
"Action": [
"hdm:DescribeSqlLogConfig",
"hdm:ModifySqlLogConfig"
],
"Resource": "*",
"Effect": "Allow"
},
{
"Effect": "Allow",
"Action": [
"dms:ListInstances",
"dms:ListDatabases",
"dms:ListTables",
"dms:AddInstance",
"dts:DescribeDtsJobs"
],
"Resource": "*"
},
{
"Action": "vpc:DescribeVSwitchAttributes",
"Resource": "*",
"Effect": "Allow"
},
{
"Action": [
"ecs:CreateNetworkInterface",
"ecs:DeleteNetworkInterface",
"ecs:DescribeNetworkInterfaces",
"ecs:CreateNetworkInterfacePermission",
"ecs:DescribeNetworkInterfacePermissions",
"ecs:DeleteNetworkInterfacePermission",
"ecs:DescribeImages",
"ecs:ModifyImageSharePermission",
"ecs:CreateSecurityGroup",
"ecs:DeleteSecurityGroup",
"ecs:DescribeSecurityGroupAttribute",
"ecs:DescribeSecurityGroups",
"ecs:ModifySecurityGroupAttribute",
"ecs:AuthorizeSecurityGroup",
"ecs:AuthorizeSecurityGroupEgress",
"ecs:RevokeSecurityGroup",
"ecs:RevokeSecurityGroupEgress"
],
"Resource": "*",
"Effect": "Allow"
},
{
"Action": [
"vpc:DescribeVSwitches",
"vpc:DescribeVpcs",
"vpc:AssociateEipAddress",
"vpc:UnassociateEipAddress",
"vpc:DescribeEipAddresses"
],
"Resource": "*",
"Effect": "Allow"
}
]
}