Virtual Private Cloud
Virtual Private Cloud, or VPC, is a secure, isolated, and scalable network for your cloud resources. With VPC, you can connect servers, databases, containers, and CDN to each other in a network that only you control, and build secure architectures on it.
On a public network, all resources are reachable from the internet, but in a VPC, resources are private by default and reach the internet only through paths you define. For example, you can keep your backend servers fully private and make only the web server reachable with a public IP.
Currently, VPC is supported only for Cloud Server, and other services will be added in the future.
VPC gives you the following features:
- More security Your data and infrastructure are in an isolated environment.
- Traffic control By setting access rules and gateways, you decide what traffic enters your network and what traffic leaves it.
- Multi-AZ support In the new version, every VPC you create works across multiple zones (Availability Zones, or AZs).
How VPC Works
A VPC is created at the region level. For example, a VPC in the Iran Central 1 region is available in the Forough, Bamdad, and Simin AZs. Each VPC has a private IPv4 range, and subnets, servers, and gateways get their addresses from this range. A VPC has no internet access by default; only after enabling internet access (Network Gateway) can you connect its resources to the internet.
The guide to creating a VPC helps you create and manage a VPC.
Features
VPC includes the following features:
- Subnet A part of the network's IP range in one AZ, where servers are created. The subnet's CIDR must be within the VPC network's CIDR. Read the details of this feature in the Subnet guide.
- Internet access (Network Gateway) The path that connects the VPC to the internet and external networks. This feature must be enabled before you use an Elastic IP or NAT Gateway.
- Elastic IP A static public IP address that makes resources reachable from the internet. Read the details of this feature in the Elastic IP guide.
- NAT Gateway Lets the resources of a subnet access the internet without accepting unwanted connections from outside. Read the details of this feature in the NAT Gateway guide.
Limits
The following table shows the VPC limits:
| Limit | Value |
|---|---|
| Number of IPv4 CIDR blocks per VPC | 1 |
| Number of subnets per VPC | 30 |
| Number of subnets per AZ | 100 |
| Smallest allowed prefix for a VPC | /28 |
| Number of Elastic IPs per AZ | 20 |
To increase these limits, you can contact Arvancloud support through a ticket.
Pricing
VPC pricing is calculated on a pay-as-you-go model. Creating a VPC and subnets is free, but the following items are charged:
- Inbound traffic Inbound traffic to resources inside the VPC (from the internet, CDN, or other paths) is charged per GB.
- Elastic IP Each Elastic IP attached to a server or NAT Gateway is charged monthly (pay-as-you-go).
The following are free in VPC:
- Traffic inside the VPC, within a subnet or between subnets
- Outbound (upload) traffic from a server to the internet
- Traffic from Object Storage to a server, within the same AZ