Menu
Amazon Virtual Private Cloud
User Guide

Amazon VPC Limits

The following tables list the limits for Amazon VPC resources per region for your AWS account. Unless indicated otherwise, you can request an increase for these limits using the AWS Support Center.

To request a limit increase

  1. Open the AWS Support Center page, sign in if necessary, and choose Create Case.

  2. For Regarding, choose Service Limit Increase.

  3. For Limit Type, choose VPC. Choose the region and the applicable limit.

  4. Complete the rest of the form and choose Submit.

If you want to increase a limit 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.

The number of VPCs in the region multiplied by the number of security groups per VPC cannot exceed 5000.

Subnets per VPC

200

-

IPv4 CIDR blocks per VPC 5 This limit is made up of your primary CIDR block plus 4 secondary CIDR blocks.

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.

Flow Logs

Resource Default limit Comments

Flow logs per single network interface, single subnet, or single VPC in a region

2 This limit cannot be increased. You can effectively have 6 flow logs per network interface if you create 2 flow logs for the subnet, and 2 flow logs for the VPC in which your network interface resides.

Gateways

Resource Default limit Comments

Customer gateways per region

50

To increase this limit, contact AWS Support.

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. Only one egress-only internet gateway can be attached 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

5

Only one virtual private gateway can be attached to a VPC at a time.

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 may 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

350

This limit is the greater of either the default limit (350) or your On-Demand Instance limit multiplied by 5. The default limit for On-Demand Instances is 20. If your On-Demand Instance limit is below 70, the default limit of 350 applies. To increase this limit, submit a request or increase your On-Demand Instance limit.

Route Tables

Resource Default limit Comments

Route tables per VPC

200

This limit includes the main route table.

Routes per route table (non-propagated routes)

50

You can increase this limit up to a maximum of 100; however, network performance may be impacted. This limit is enforced separately for IPv4 routes and IPv6 routes (you can have 50 each, and a maximum of 100 each).

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

Security groups per VPC (per region)

500

The number of VPCs in the region multiplied by the number of security groups per VPC cannot exceed 5000.

Inbound or outbound rules per security group

50

You can have 50 inbound and 50 outbound rules per security group (giving a total of 100 combined inbound and outbound rules). To change this limit, create a case in the AWS Support Center — a limit change applies to both inbound and outbound rules. However, the limit for inbound or outbound rules per security group multiplied by the limit for security groups per network interface cannot exceed 250. For example, if you want to increase the limit to 100, we decrease your number of security groups per network interface to 2.

This limit is enforced separately for IPv4 rules and IPv6 rules; for example, your security group can have 50 inbound rules for IPv4 traffic and 50 inbound rules for IPv6 traffic. A rule that references a security group counts as one rule for IPv4 and one rule for IPv6.

Security groups per network interface

5

To increase or decrease this limit, you can contact AWS Support. The maximum is 16. The limit for security groups per network interface multiplied by the limit for rules per security group cannot exceed 250. For example, if you increase the limit to 10, we decrease your number of rules per security group to 25.

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 may 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. To increase this limit, contact AWS Support.

Expiry time for an unaccepted VPC peering connection request

1 week (168 hours)

To increase this limit, contact AWS Support.

VPC Endpoints

Resource Default limit Comments

Gateway VPC endpoints per region

20

To increase this limit, contact AWS Support. The maximum limit is 255 endpoints per VPC, regardless of your endpoint limit per region.

Interface VPC endpoints per VPC 20 -

VPN Connections

Resource Default limit Comments

VPN connections per region

50

-

VPN connections per VPC (per virtual private gateway)

10

-