Amazon Virtual Private Cloud
User Guide

Amazon VPC Limits

The following tables list the limits, also referred to as quotas, for Amazon VPC resources per Region for your AWS account. Unless indicated otherwise, you can request an increase for these limits using the Amazon VPC limits form. For some of these limits, you can view your current limit using the Limits page of the Amazon EC2 console.

If you request a limit increase that applies per resource, we increase the limit for all resources in the Region. For example, the limit for security groups per VPC applies to all VPCs in the Region.

VPC and Subnets

Resource Default limit Comments

VPCs per Region

5

The limit for internet gateways per Region is directly correlated to this one. Increasing this limit increases the limit on internet gateways per Region by the same amount.

You can have 100s of VPCs per Region for your needs even though the default limit is 5 VPCs per Region. You can request an increase for these limits using the Amazon VPC limits form.

Subnets per VPC

200

-

IPv4 CIDR blocks per VPC 5 This primary CIDR block and all secondary CIDR blocks count toward this limit. This limit can be increased up to a maximum of 50.

IPv6 CIDR blocks per VPC

1

This limit cannot be increased.

DNS

For more information, see DNS Limits.

Elastic IP Addresses (IPv4)

Resource Default limit Comments

Elastic IP addresses per Region

5

This is the limit for the number of Elastic IP addresses for use in EC2-VPC. For Elastic IP addresses for use in EC2-Classic, see Amazon EC2 Limits in the Amazon Web Services General Reference.

Gateways

Resource Default limit Comments

Customer gateways per Region

-

For more information, see Site-to-Site VPN Limits in the AWS Site-to-Site VPN User Guide.

Egress-only internet gateways per Region 5 This limit is directly correlated with the limit on VPCs per Region. To increase this limit, increase the limit on VPCs per Region. You can attach only one egress-only internet gateway to a VPC at a time.

Internet gateways per Region

5

This limit is directly correlated with the limit on VPCs per Region. To increase this limit, increase the limit on VPCs per Region. Only one internet gateway can be attached to a VPC at a time.

NAT gateways per Availability Zone 5 A NAT gateway in the pending, active, or deleting state counts against your limit.

Virtual private gateways per Region

-

For more information, see Site-to-Site VPN Limits in the AWS Site-to-Site VPN User Guide.

Network ACLs

Resource Default limit Comments

Network ACLs per VPC

200

You can associate one network ACL to one or more subnets in a VPC. This limit is not the same as the number of rules per network ACL.

Rules per network ACL

20

This is the one-way limit for a single network ACL, where the limit for ingress rules is 20, and the limit for egress rules is 20. This limit includes both IPv4 and IPv6 rules, and includes the default deny rules (rule number 32767 for IPv4 and 32768 for IPv6, or an asterisk * in the Amazon VPC console).

This limit can be increased up to a maximum of 40; however, network performance might be impacted due to the increased workload to process the additional rules.

Network Interfaces

Resource Default limit Comments

Network interfaces per instance

-

This limit varies by instance type. For more information, see IP Addresses Per ENI Per Instance Type.

Network interfaces per Region

5000

-

Route Tables

Resource Default limit Comments

Route tables per VPC

200

The main route table counts toward this limit.

Routes per route table (non-propagated routes)

50

You can increase this limit up to a maximum of 1000; however, network performance might be impacted. This limit is enforced separately for IPv4 routes and IPv6 routes.

If you have more than 125 routes, we recommend that you paginate calls to describe your route tables for better performance.

BGP advertised routes per route table (propagated routes)

100

This limit cannot be increased. If you require more than 100 prefixes, advertise a default route.

Security Groups

Resource Default limit Comments

VPC security groups per Region

2500

If you have more than 5000 security groups in a Region, we recommend that you paginate calls to describe your security groups for better performance.

Inbound or outbound rules per security group

60

You can have 60 inbound and 60 outbound rules per security group (making a total of 120 rules). This limit is enforced separately for IPv4 rules and IPv6 rules; for example, a security group can have 60 inbound rules for IPv4 traffic and 60 inbound rules for IPv6 traffic. A rule that references a security group or prefix list ID counts as one rule for IPv4 and one rule for IPv6.

A limit change applies to both inbound and outbound rules. This limit multiplied by the limit for security groups per network interface cannot exceed 1000. For example, if you increase this limit to 100, we decrease the limit for your number of security groups per network interface to 10.

Security groups per network interface

5

The maximum is 16. This limit is enforced separately for IPv4 rules and IPv6 rules. The limit for security groups per network interface multiplied by the limit for rules per security group cannot exceed 1000. For example, if you increase this limit to 10, we decrease the limit for your number of rules per security group to 100.

VPC Peering Connections

Resource Default limit Comments

Active VPC peering connections per VPC

50

The maximum limit is 125 peering connections per VPC. The number of entries per route table should be increased accordingly; however, network performance might be impacted.

Outstanding VPC peering connection requests

25

This is the limit for the number of outstanding VPC peering connection requests that you've requested from your account.

Expiry time for an unaccepted VPC peering connection request

1 week (168 hours)

This limit cannot be increased.

VPC Endpoints

Resource Default limit Comments

Gateway VPC endpoints per Region

20

You cannot have more than 255 gateway endpoints per VPC.

Interface VPC endpoints per VPC 50 This is the limit for the maximum number of endpoints in a VPC. To increase this limit, contact AWS Support.

AWS Site-to-Site VPN Connections

For more information, see Site-to-Site VPN Limits in the AWS Site-to-Site VPN User Guide.

VPC Sharing

All standard VPC limits apply to a shared VPC.

Resource Default limit Comments

Number of distinct accounts that a VPC can be shared with

100

This is the limit for the number of distinct participant accounts that subnets in a VPC can be shared with. This is a per VPC limit and applies across all the subnets shared in a VPC. AWS recommends that you paginate your DescribeSecurityGroups and DescribeNetworkInterfaces API calls before requesting an increase for this limit. To increase this limit, contact AWS Support.
Number of subnets that can be shared with an account 100

This is the limit for maximum number of subnets that can be shared with an AWS account. AWS recommends that you paginate your DescribeSecurityGroups and DescribeSubnets API calls before requesting an increase for this limit. To increase this limit contact AWS Support.