企业帐号 CompanyExample(ownerUin 为 12345678)下有一个子账号 Developer,该子账号需要拥有对企业帐号 CompanyExample 的 VPC 服务的读写 VPC 及其相关资源的权限,但是不允许对路由表进行相关操作。
步骤1:通过策略语法方式创建以下策略。
{
"version": "2.0",
"statement": [
{
"action": [
"vpc:*"
],
"resource": "*",
"effect": "allow"
},
{
"action": [
"vpc:AssociateRouteTable",
"vpc:CreateRoute",
"vpc:CreateRouteTable",
"vpc:DeleteRoute",
"vpc:DeleteRouteTable",
"vpc:ModifyRouteTableAttribute"
],
"resource": "*",
"effect": "deny"
}
]
}
步骤2:将该策略授权给子账号。授权方式请参考 授权管理。
本页内容是否解决了您的问题?