6.31 Don't use the default VPC

Information

A default VPC is ready for you to use -- you can immediately start launching instances into your default VPC without having to perform any additional configuration steps.

When we create a default VPC, AWS does the following to set it up:

* Create a default subnet in each Availability Zone.
* Create an Internet gateway and connect it to your default VPC.
* Create a main route table for your default VPC with a rule that sends all traffic destined for the Internet to the Internet gateway.
* Create a default security group and associate it with your default VPC.
* Create a default network access control list (ACL) and associate it with your default VPC.
* Associate the default DHCP options set for your AWS account with your default VPC.

Label this Default VPC "Do Not Use".
The default VPC comes with some default configuration that wouldn't meet the best practices, however if recommended setting are created or the default behavior is changed, this would still be considered ok.

Solution

Using the Amazon Unified CLI:

* Create a new VPC with the desired CIDR and migrate your application:

aws ec2 create-vpc --cidr-block _<desired_cidr>_

See Also

https://workbench.cisecurity.org/files/260