AliyunServiceRolePolicyForRds 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: 12:01:47 on February 02, 2024
Update time: 05:44:09 on December 01, 2025
Current version: v19
Policy content
{
"Version": "1",
"Statement": [
{
"Action": [
"ecs:CreateNetworkInterface",
"ecs:DeleteNetworkInterface",
"ecs:AttachNetworkInterface",
"ecs:DetachNetworkInterface",
"ecs:DescribeNetworkInterfaces",
"ecs:CreateNetworkInterfacePermission",
"ecs:DescribeNetworkInterfacePermissions",
"ecs:ModifyNetworkInterfaceAttribute",
"ecs:CreateSecurityGroup",
"ecs:DeleteSecurityGroup",
"ecs:DescribeSecurityGroupAttribute",
"ecs:DescribeSecurityGroups",
"ecs:ModifySecurityGroupAttribute",
"ecs:AuthorizeSecurityGroup",
"ecs:AuthorizeSecurityGroupEgress",
"ecs:RevokeSecurityGroup",
"ecs:RevokeSecurityGroupEgress",
"ecs:DescribeKeyPairs",
"ecs:ModifyImageSharePermission",
"ecs:CopyImage",
"ecs:DescribeImages",
"ecs:DescribeSnapshots"
],
"Resource": "*",
"Effect": "Allow"
},
{
"Action": [
"vpc:DescribeVSwitches",
"vpc:AssociateEipAddress",
"vpc:UnassociateEipAddress",
"vpc:DescribeEipAddresses",
"vpc:DescribeVpcs"
],
"Resource": "*",
"Effect": "Allow"
},
{
"Action": [
"cs:CreateClusterNodePool",
"cs:DeleteClusterNodepool",
"cs:DescribeClusterNodePoolDetail",
"cs:DescribeTaskInfo",
"cs:DescribeClustersV1",
"cs:GetClusters",
"cs:DescribeClustersForRegion",
"cs:DescribeClusterDetail",
"cs:DescribeClusterNodePools",
"cs:DescribeClusterAttachScripts",
"cs:DescribeClusterUserKubeconfig"
],
"Resource": "*",
"Effect": "Allow"
},
{
"Action": [
"resourcesharing:CreateResourceShare",
"resourcesharing:ListResourceShareAssociations",
"resourcesharing:DeleteResourceShare",
"resourcesharing:ListResourceShares"
],
"Resource": "*",
"Effect": "Allow"
},
{
"Action": [
"privatelink:CheckProductOpen",
"privatelink:OpenPrivateLinkService",
"privatelink:ListVpcEndpoints",
"privatelink:CreateVpcEndpoint",
"privatelink:GetVpcEndpointAttribute",
"privatelink:DeleteVpcEndpoint",
"privatelink:ListVpcEndpointZones",
"privatelink:CreateVpcEndpointService"
],
"Resource": "*",
"Effect": "Allow"
},
{
"Action": "ram:DeleteServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": "rds-ecs-service.rds.aliyuncs.com"
}
}
},
{
"Action": "ram:CreateServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": "privatelink.aliyuncs.com"
}
}
},
{
"Action": [
"nlb:CreateLoadBalancer",
"nlb:ListListeners",
"nlb:ListServerGroupServers",
"nlb:AddServersToServerGroup",
"nlb:GetListenerHealthStatus",
"nlb:CreateListener",
"nlb:StartListener",
"nlb:CreateServerGroup"
],
"Resource": "*",
"Effect": "Allow"
},
{
"Action": [
"cr:GetInstanceVpcEndpoint",
"cr:GetInstanceEndpoint"
],
"Resource": "*",
"Effect": "Allow"
}
]
}