AliyunServiceRolePolicyForNis 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: 11:11:45 on October 08, 2021
Update time: 02:36:13 on January 27, 2026
Current version: v17
Policy content
{
"Version": "1",
"Statement": [
{
"Action": [
"ecs:InvokeCommand",
"ecs:StopInvocation",
"ecs:DescribeCloudAssistantStatus",
"ecs:DescribeCommands",
"ecs:DescribeInvocations",
"ecs:DescribeInvocationResults"
],
"Resource": [
"acs:ecs:*:*:instance/*",
"acs:ecs:*:*:command/cmd-ACS-SLB-Diagnosis*"
],
"Effect": "Allow"
},
{
"Action": [
"dts:DescribeDtsJobs",
"vpc:UpgradeVpnGatewayFirmware",
"quotas:ListProductQuotas",
"cms:DescribeMetricLast",
"cms:GetCmsService",
"cms:GetPrometheus*",
"bssapi:QueryAvailableInstances",
"ecs:DescribeInstances",
"ecs:DescribeSecurityGroups",
"ecs:DescribeSecurityGroupAttribute",
"ecs:DescribeSecurityGroupReferences",
"ecs:DescribeNetworkInterfaces",
"alb:ListLoadBalancers",
"alb:GetLoadBalancerAttribute",
"slb:Describe*",
"nlb:ListLoadBalancers",
"nlb:GetListenerAttribute",
"nlb:ListServerGroups",
"nlb:ListServerGroupServers",
"nlb:ListListeners",
"vpc:Describe*",
"vpc:List*",
"vpc:Get*",
"vpc:CreateFlowlog",
"vpc:DeleteFlowLog",
"vpc:UpgradeVpnGatewayFirmware",
"vpc:DiagnoseVpnConnectionsHistory",
"vpc:ModifyFlowLogAttribute",
"cen:Describe*",
"cen:List*",
"cen:CreateFlowlog",
"cen:DeleteFlowlog",
"privatelink:List*",
"privatelink:Get*",
"ga:Describe*",
"ga:List*",
"ga:Get*",
"ga:Check*",
"ga:Query*",
"expressconnectrouter:Describe*",
"expressconnectrouter:List*"
],
"Resource": "*",
"Effect": "Allow"
},
{
"Action": "ram:DeleteServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": "nis.aliyuncs.com"
}
}
},
{
"Action": "ram:CreateServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": "flowlog.cen.aliyuncs.com"
}
}
}
]
}