Permissions

If you need to assign different permissions to personnel in your enterprise to access your VPCs, IAM is a good choice for fine-grained permissions management. IAM provides identity authentication, permissions management, and access control, helping you to securely access your cloud resources.

With IAM, you can create IAM users, and assign permissions to control their access to specific resources. For example, if you want some software developers in your enterprise to use VPCs but do not want them to delete VPCs or perform any other high-risk operations, you can grant permissions to use VPCs but not permissions to delete them.

If your cloud account does not require IAM for permissions management, you can skip this section.

IAM is a free service. You only pay for the resources in your account. For more information, see IAM Service Overview.

VPC Permissions

New IAM users do not have any permissions assigned by default. You need to first add them to one or more groups and attach policies or roles to these groups. The users then inherit permissions from the groups and can perform specified operations on cloud services based on the permissions they have been assigned.

VPC is a project-level service deployed for specific regions. When you set Scope to Region-specific projects and select the specified projects in the specified regions, the users only have permissions for VPCs in the selected projects. If you set Scope to All resources, users have permissions for VPCs in all region-specific projects. When accessing VPCs, the users need to switch to the authorized region.

You can grant permissions by using roles and policies.

Table 1 lists all the system-defined permissions for VPC.

Table 1 System-defined permissions for VPC

Policy Name

Description

Policy Type

Dependencies

VPC FullAccess

Full permissions for VPC

System-defined policy

To use the VPC flow log function, users must also have the LTS ReadOnlyAccess permission.

VPC ReadOnlyAccess

Read-only permissions on VPC.

System-defined policy

None

VPC Administrator

Most permissions on VPC, excluding creating, modifying, deleting, and viewing security groups and security group rules.

To be granted this permission, users must also have the Tenant Guest and Server Administrator permission.

System-defined role

Tenant Guest and Server Administrator policies, which must be attached in the same project as VPC Administrator.

Table 2 lists the common operations supported by system-defined permissions for VPC.

Table 2 Common operations supported by system-defined permissions

Operation

VPC ReadOnlyAccess

VPC Administrator

VPC FullAccess

Creating a VPC

x

Modifying a VPC

x

Deleting a VPC

x

Viewing VPC information

Creating a subnet

x

Viewing subnet information

Modifying a subnet

x

Deleting a subnet

x

Creating a security group

x

x

Viewing security group information

x

Modifying a security group

x

x

Deleting a security group

x

x

Adding a security group rule

x

x

Viewing a security group rule

x

Modifying a security group rule

x

x

Deleting a security group rule

x

x

Creating a firewall

x

Viewing a firewall

Modifying a firewall

x

Deleting a firewall

x

Adding a firewall rule

x

Modifying a firewall rule

x

Deleting a firewall rule

x

Creating a VPC peering connection

x

Modifying a VPC peering connection

x

Deleting a VPC peering connection

x

Querying a VPC peering connection

Accepting a VPC peering connection request

x

Rejecting a VPC peering connection request

x

Creating a route table

x

Deleting a route table

x

Modifying a route table

x

Associating a route table with a subnet

x

Adding a route

x

Modifying a route

x

Deleting a route

x

Creating a VPC flow log

x

Viewing a VPC flow log

Enabling or disabling a VPC flow log

x

Deleting a VPC flow log

x

Helpful Links