AliyunServiceRolePolicyForEskOnEcs 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: 00:04:35 on July 10, 2026
Update time: 00:04:35 on July 10, 2026
Current version: v1
Policy content
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ecs:DescribeInstances",
"ecs:DescribeDisks",
"ecs:DescribeSecurityGroups",
"ecs:DescribeImageSharePermission"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"ecs:RunInstances",
"ecs:ModifyInstanceAttribute",
"ecs:CreateDisk",
"ecs:AttachDisk",
"ecs:DetachDisk",
"ecs:CreateSecurityGroup",
"ecs:AuthorizeSecurityGroup",
"ecs:AuthorizeSecurityGroupEgress",
"ecs:RevokeSecurityGroup",
"ecs:RevokeSecurityGroupEgress",
"ecs:ModifyImageSharePermission"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"ecs:DeleteInstance",
"ecs:DeleteDisk",
"ecs:DeleteSecurityGroup"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"acs:ResourceTag/esk.aliyun.com/managed": "true"
}
}
},
{
"Effect": "Allow",
"Action": [
"vpc:DescribeVpcs",
"vpc:DescribeVSwitches",
"vpc:DescribeEipAddresses",
"vpc:DescribeNatGateways",
"vpc:DescribeSnatTableEntries"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"vpc:CreateVpc",
"vpc:CreateVSwitch",
"vpc:AllocateEipAddress",
"vpc:AssociateEipAddress",
"vpc:UnassociateEipAddress",
"vpc:CreateNatGateway",
"vpc:CreateSnatEntry"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"vpc:DeleteVpc",
"vpc:DeleteVSwitch",
"vpc:ReleaseEipAddress",
"vpc:DeleteNatGateway",
"vpc:DeleteSnatEntry"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"acs:ResourceTag/esk.aliyun.com/managed": "true"
}
}
},
{
"Effect": "Allow",
"Action": [
"nas:DescribeFileSystems",
"nas:DescribeMountTargets",
"nas:CreateFileSystem",
"nas:CreateMountTarget",
"nas:DeleteFileSystem",
"nas:DeleteMountTarget"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"slb:DescribeLoadBalancers",
"slb:DescribeLoadBalancerAttribute",
"slb:DescribeLoadBalancerListeners"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"slb:CreateLoadBalancer",
"slb:AddBackendServers",
"slb:SetBackendServers",
"slb:RemoveBackendServers",
"slb:CreateLoadBalancerTCPListener",
"slb:CreateLoadBalancerUDPListener",
"slb:StartLoadBalancerListener",
"slb:SetLoadBalancerTCPListenerAttribute"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"slb:DeleteLoadBalancer",
"slb:DeleteLoadBalancerListener",
"slb:StopLoadBalancerListener"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"acs:ResourceTag/esk.aliyun.com/managed": "true"
}
}
},
{
"Effect": "Allow",
"Action": "ram:DeleteServiceLinkedRole",
"Resource": "*",
"Condition": {
"StringEquals": {
"ram:ServiceName": "eskonecs.ens.aliyuncs.com"
}
}
},
{
"Action": "ram:CreateServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": "eipaccess.slb.aliyuncs.com"
}
}
}
]
}