AliyunServiceRolePolicyForECSPrivateCloudConsole 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: 15:27:58 on May 31, 2024
Update time: 15:27:58 on May 31, 2024
Current version: v1
Policy content
{
"Version": "1",
"Statement": [
{
"Action": [
"oos:CreateTemplate",
"oos:StartExecution",
"oos:CancelExecution",
"oos:ListExecutions",
"oos:ListTaskExecutions",
"oos:ListExecutionLogs",
"oos:DeleteTemplate",
"oos:DeleteExecutions",
"oos:GenerateExecutionPolicy"
],
"Effect": "Allow",
"Resource": "*"
},
{
"Action": [
"ecs:DescribeAvailableResource",
"ecs:DescribeInstances",
"ecs:DescribeCloudAssistantStatus",
"ecs:DescribeImages",
"ecs:DescribeInvocations",
"ecs:DescribeInvocationResults",
"ecs:CreateSecurityGroup",
"ecs:DescribeSecurityGroups",
"ecs:CancelCopyImage",
"ecs:RunInstances",
"ecs:CopyImage",
"ecs:ModifyInstanceSpec",
"ecs:DeleteSnapshot",
"ecs:DescribeDeploymentSets",
"ecs:ModifyInstanceDeployment",
"ecs:CreateSnapshot",
"ecs:CreateDisk",
"ecs:DescribeDisks",
"ecs:DescribeSnapshots",
"ecs:AuthorizeSecurityGroup",
"ecs:AuthorizeSecurityGroupEgress",
"ecs:RevokeSecurityGroup",
"ecs:RevokeSecurityGroupEgress"
],
"Effect": "Allow",
"Resource": "*"
},
{
"Action": [
"ecs:RebootInstance",
"ecs:DeleteInstance",
"ecs:DeleteImage",
"ecs:DescribeImageSharePermission",
"ecs:DeleteSecurityGroup",
"ecs:ModifyImageSharePermission",
"ecs:ModifyInstanceSpec",
"ecs:InstallCloudAssistant",
"ecs:RunCommand",
"ecs:StopInstance",
"ecs:InnerBatchValidateSecurityGroup",
"ecs:CreateImage",
"ecs:DescribeDeploymentSets",
"ecs:ModifyInstanceDeployment"
],
"Effect": "Allow",
"Resource": "*",
"Condition": {
"StringLike": {
"ecs:tag/imagepipelineid": "*"
}
}
},
{
"Action": [
"vpc:DescribeVSwitches",
"vpc:DescribeVpcs",
"vpc:CreateVpc",
"vpc:CreateVSwitch",
"vpc:DeleteVSwitch",
"vpc:DeleteVpc"
],
"Effect": "Allow",
"Resource": "*"
},
{
"Action": "ram:DeleteServiceLinkedRole",
"Effect": "Allow",
"Resource": "*",
"Condition": {
"StringEquals": {
"ram:ServiceName": "ecs.aliyuncs.com"
}
}
},
{
"Action": "ram:CreateServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": "systemeventoperator.oos.aliyuncs.com"
}
}
},
{
"Action": "ram:PassRole",
"Resource": "*",
"Effect": "Allow"
}
]
}