How do I modify the IPv4 address range of my Amazon VPC?

Last updated: 2019-03-21

How do I change the IPv4 CIDR block of my Amazon Virtual Private Cloud (Amazon VPC)?

Short Description

It's not possible to modify the IP address range of an existing virtual private cloud (VPC) or subnet. You must delete the VPC or subnet, and then create a new VPC or subnet with your preferred CIDR block.

To extend the IPv4 address range of your VPC, you can add an additional IPv4 CIDR block.

Resolution

Add a IPv4 CIDR block to your VPC

To extend the IPv4 address range of your VPC, see Associating a secondary IPv4 CIDR block with your VPC.

Recreate your VPC with a different IPv4 CIDR block

If extending your VPC's IP address range with an additional IPv4 CIDR block isn't useful, delete and then recreate the VPC with your preferred IPv4 CIDR block.

  1. Create Amazon Machine Images (AMIs) or snapshots of existing resources.
  2. Delete all underlying resources in your VPC. This includes terminating all instances running in the VPC, deleting all security groups associated with the VPC (except the default one), deleting all route tables associated with the VPC (except the default one), and so on.
  3. Delete your VPC.
  4. Create a new VPC with your preferred IPv4 CIDR block.
  5. Restore your resources as necessary using the AMIs or snapshots you created in the first step.

Did this article help you?

Anything we could improve?


Need more help?