全部产品
Search
文档中心

访问控制:AliyunOOSPrivateCloudDefaultRolePolicy

更新时间:Jun 03, 2024

AliyunOOSPrivateCloudDefaultRolePolicy 是专用于服务角色的授权策略,通常会在创建对应的服务角色时同步完成授权,以允许服务角色代您访问其他云服务。本策略由对应的阿里云服务按需更新,请勿将本策略授权给服务角色之外的 RAM 身份使用。

策略详情

  • 类型:系统策略

  • 创建时间:2024-05-30 10:41:23

  • 更新时间:2024-05-30 10:41:23

  • 当前版本:v1

策略内容

{
  "Version": "1",
  "Statement": [
    {
      "Action": [
        "oos:CreateTemplate",
        "oos:StartExecution",
        "oos:CancelExecution",
        "oos:ListExecutions",
        "oos:ListTaskExecutions",
        "oos:ListExecutionLogs",
        "oos:DeleteTemplate"
      ],
      "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:DeleteSnapshot"
      ],
      "Effect": "Allow",
      "Resource": "*"
    },
    {
      "Action": [
        "ecs:RebootInstance",
        "ecs:DeleteInstance",
        "ecs:DeleteImage",
        "ecs:DescribeImageSharePermission",
        "ecs:DeleteSecurityGroup",
        "ecs:ModifyImageSharePermission",
        "ecs:InstallCloudAssistant",
        "ecs:RunCommand",
        "ecs:StopInstance",
        "ecs:CreateImage"
      ],
      "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"
        }
      }
    }
  ]
}

相关文档