AliyunServiceRolePolicyForSasAgentless 是专用于服务关联角色的授权策略,会在创建服务关联角色 AliyunServiceRoleForSasAgentless 时自动授权,以允许服务关联角色代您访问其他云服务。本策略由对应的阿里云服务按需更新,请勿将本策略授权给服务关联角色之外的 RAM 身份使用。
策略详情
类型:系统策略
创建时间:2026-02-27 16:54:59
更新时间:2026-11-09 14:35:08
当前版本:v4
策略内容
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ecs:RunInstances",
"ecs:CreateSecurityGroup",
"ecs:CreateDisk",
"vpc:CreateVpc",
"ecs:TagResources"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"acs:RequestTag/CreatedBy": [
"sas-agentless"
]
}
}
},
{
"Effect": "Allow",
"Action": [
"vpc:CreateVSwitch",
"vpc:DescribeVSwitchAttributes",
"ecs:DescribeInstances",
"ecs:DescribeInstanceStatus",
"ecs:DescribeDisks",
"ecs:DescribeSecurityGroups",
"ecs:DescribeSecurityGroupAttribute",
"ecs:DescribeImages",
"ecs:DescribeSnapshots",
"ecs:ListTagResources",
"vpc:DescribeVpcs",
"vpc:DescribeVSwitches",
"vpc:DescribeVpcAttribute"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"ecs:DeleteInstance",
"ecs:DeleteSecurityGroup",
"ecs:DeleteDisk",
"ecs:AttachDisk",
"ecs:StopInstance",
"vpc:DeleteVpc",
"vpc:DeleteVSwitch"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"acs:ResourceTag/CreatedBy": [
"sas-agentless"
]
}
}
},
{
"Effect": "Allow",
"Action": "vpc:TagResources",
"Resource": "*",
"Condition": {
"StringEquals": {
"acs:RequestTag/CreatedBy": [
"sas-agentless"
]
}
}
},
{
"Effect": "Allow",
"Action": [
"vpc:DescribeRegions",
"vpc:DescribeZones"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "vpc:ListTagResources",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"kms:DescribeKey",
"kms:ListKeys"
],
"Resource": "*"
},
{
"Action": "ram:DeleteServiceLinkedRole",
"Resource": "*",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"ram:ServiceName": "agentless.sas.aliyuncs.com"
}
}
},
{
"Effect": "Allow",
"Action": [
"vpc:CreateNatGateway",
"vpc:AllocateEipAddress"
],
"Resource": [
"acs:vpc:*:*:natgateway/*",
"acs:vpc:*:*:eip/*"
],
"Condition": {
"StringEquals": {
"acs:RequestTag/CreatedBy": [
"sas-agentless"
]
}
}
},
{
"Effect": "Allow",
"Action": [
"vpc:AssociateEipAddress",
"vpc:DeleteNatGateway",
"vpc:ReleaseEipAddress"
],
"Resource": [
"acs:vpc:*:*:natgateway/*",
"acs:vpc:*:*:eip/*"
],
"Condition": {
"StringEquals": {
"acs:ResourceTag/CreatedBy": [
"sas-agentless"
]
}
}
},
{
"Effect": "Allow",
"Action": [
"vpc:CreateSnatEntry",
"vpc:DescribeSnatTableEntries"
],
"Resource": "acs:vpc:*:*:snattable/*"
},
{
"Effect": "Allow",
"Action": [
"vpc:DescribeNatGateways",
"vpc:DescribeEipAddresses"
],
"Resource": [
"acs:vpc:*:*:natgateway/*",
"acs:vpc:*:*:eip/*"
]
},
{
"Effect": "Allow",
"Action": [
"vpc:DescribeForwardTableEntries"
],
"Resource": "acs:vpc:*:*:forwardtable/*"
},
{
"Effect": "Allow",
"Action": [
"vpc:DescribeRouteEntryList"
],
"Resource": "acs:vpc:*:*:routetable/*"
},
{
"Effect": "Allow",
"Action": "vpc:ListEnhanhcedNatGatewayAvailableZones",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "ram:CreateServiceLinkedRole",
"Resource": "*",
"Condition": {
"StringEquals": {
"ram:ServiceName": "nat.aliyuncs.com"
}
}
}
]
}相关文档
该文章对您有帮助吗?