Help & DocumentationCloud Access ManagementBusiness Use CaseVPC-related CasesAuthorizing Sub-account Access to Perform Operations on VPC Except on Routing Table

Authorizing Sub-account Access to Perform Operations on VPC Except on Routing Table

Last updated: 2019-05-10 11:10:46

PDF

Authorizing a sub-account with operation permissions of VPC with the exception of routing table

A sub-account Developer under the enterprise account CompanyExample (ownerUin is 12345678) requires read/write permission of VPC and relevant resources (except for routing table) of the VPC service under the enterprise account CompanyExample.

Step 1: Create the following policy using policy syntax

{
    "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"
        }
    ]
}

Step 2: Authorize the policy to the sub-account. For more information on authorization, please see Authorization Management.