AliyunAIEDeployRolePolicy

更新时间:
复制 MD 格式

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

策略详情

  • 类型:系统策略

  • 创建时间:2026-11-04 09:59:33

  • 更新时间:2026-11-20 10:08:12

  • 当前版本:v2

策略内容

{
  "Version": "1",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "ros:GetTemplateEstimateCost",
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "ecs:DescribeDisks",
        "ecs:DescribeImageSupportInstanceTypes",
        "ecs:DescribeImages",
        "ecs:DescribeInstances",
        "ecs:DescribeInstanceStatus",
        "ecs:DescribeInvocations",
        "ecs:DescribeInvocationResults",
        "ecs:DescribeNetworkInterfaces",
        "ecs:DescribePrice",
        "ecs:DescribeSecurityGroupAttribute",
        "ecs:DescribeSecurityGroups",
        "ecs:CreateInstance"
      ],
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "vpc:DescribeNatGateways",
        "vpc:DescribeRouteTableList",
        "vpc:DescribeVSwitches",
        "vpc:DescribeVpcs"
      ],
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": "vpc:DescribeZones",
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "rds:DescribeAvailableClasses",
        "rds:DescribeDBInstanceAttribute",
        "rds:DescribeDBInstanceIPArrayList",
        "rds:DescribeDBInstances",
        "rds:DescribeInstanceKeywords",
        "rds:DescribeParameterGroup",
        "rds:CreateDBInstance"
      ],
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "ros:CreateStack",
        "ros:GetStack",
        "ros:GetTemplate",
        "ros:ListStacks",
        "ros:ListStackResources"
      ],
      "Resource": "acs:ros:*:*:stack/*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "ros:UpdateStack",
        "ros:DeleteStack"
      ],
      "Resource": "acs:ros:*:*:stack/*",
      "Condition": {
        "StringEquals": {
          "acs:ResourceTag/from": [
            "aie"
          ]
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": "ecs:CreateSecurityGroup",
      "Resource": [
        "acs:ecs:*:*:securitygroup/*",
        "acs:vpc:*:*:vpc/*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "ecs:AuthorizeSecurityGroup",
        "ecs:AuthorizeSecurityGroupEgress",
        "ecs:RunCommand"
      ],
      "Resource": "*",
      "Condition": {
        "StringEquals": {
          "acs:ResourceTag/from": [
            "aie"
          ]
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": "ecs:DeleteSecurityGroup",
      "Resource": "acs:ecs:*:*:securitygroup/*",
      "Condition": {
        "StringEquals": {
          "acs:ResourceTag/from": [
            "aie"
          ]
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": "vpc:CreateVpc",
      "Resource": "acs:vpc:*:*:vpc/*"
    },
    {
      "Effect": "Allow",
      "Action": "vpc:DeleteVpc",
      "Resource": "acs:vpc:*:*:vpc/*",
      "Condition": {
        "StringEquals": {
          "acs:ResourceTag/from": [
            "aie"
          ]
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": "vpc:CreateVSwitch",
      "Resource": [
        "acs:vpc:*:*:vpc/*",
        "acs:vpc:*:*:vswitch/*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": "vpc:DeleteVSwitch",
      "Resource": "acs:vpc:*:*:vswitch/*",
      "Condition": {
        "StringEquals": {
          "acs:ResourceTag/from": [
            "aie"
          ]
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "ecs:StartInstance",
        "ecs:StopInstance",
        "ecs:DeleteInstance",
        "ecs:AllocatePublicIpAddress"
      ],
      "Resource": "acs:ecs:*:*:instance/*",
      "Condition": {
        "StringEquals": {
          "acs:ResourceTag/from": [
            "aie"
          ]
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": "ecs:StopInvocation",
      "Resource": "acs:ecs:*:*:instance/*"
    },
    {
      "Effect": "Allow",
      "Action": "ecs:ModifyDiskAttribute",
      "Resource": "acs:ecs:*:*:disk/*",
      "Condition": {
        "StringEquals": {
          "acs:ResourceTag/from": [
            "aie"
          ]
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "rds:DescribeAccounts",
        "rds:DescribeDatabases",
        "rds:DescribeDBInstanceNetInfo",
        "rds:DescribeDBInstanceSSL",
        "rds:DescribeBackupPolicy",
        "rds:CreateAccount",
        "rds:CreateDatabase",
        "rds:GrantAccountPrivilege",
        "rds:DeleteDBInstance"
      ],
      "Resource": "acs:rds:*:*:dbinstance/*"
    },
    {
      "Effect": "Allow",
      "Action": "rds:ModifyDBInstanceSSL",
      "Resource": "acs:rds:*:*:dbinstance/*",
      "Condition": {
        "StringEquals": {
          "rds:ResourceTag/from": [
            "aie"
          ]
        }
      }
    }
  ]
}

相关文档