AliyunServiceRolePolicyForLHM 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: 16:37:19 on March 13, 2025
Update time: 05:55:56 on March 18, 2025
Current version: v2
Policy content
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": [
"vpc:DescribeVpcs",
"vpc:DescribeZones",
"vpc:DescribeVSwitches",
"vpc:CheckCanAllocateVpcPrivateIpAddress",
"vpc:CreateVSwitch",
"vpc:CreateVpc",
"vpc:DescribeVpcAttribute",
"vpc:AssociateVpcCidrBlock",
"ecs:DescribeInstanceAttribute",
"ecs:DescribeAvailableResource",
"ecs:DescribeInstances",
"ecs:DescribeSecurityGroups",
"ecs:DescribeSecurityGroupAttribute",
"ecs:DescribeInvocationResults",
"ecs:DescribeRegions",
"ecs:DescribeInvocations",
"ecs:DescribeInstanceTypes",
"ecs:DescribeCloudAssistantStatus",
"ecs:CreateSecurityGroup",
"ecs:AuthorizeSecurityGroup",
"ecs:AuthorizeSecurityGroupEgress"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"privatelink:ListVpcEndpoints",
"privatelink:CreateVpcEndpoint",
"privatelink:CheckProductOpen",
"privatelink:ListVpcEndpointServicesByEndUser"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"dataworks:ListResourceGroups",
"dataworks:ListProjects",
"dataworks:GetTaskInstanceLog",
"dataworks:GetProject",
"dataworks:GetTaskInstance",
"dataworks:ListTaskInstances",
"dataworks:ExecuteAdhocWorkflowInstance"
],
"Resource": "*"
},
{
"Action": "ram:DeleteServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": "lhm.apds.aliyuncs.com"
}
}
},
{
"Action": "ram:CreateServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": "privatelink.aliyuncs.com"
}
}
}
]
}