Create a private AWS VPC with CloudFormation
Blog post from Octopus Deploy
Virtual Private Clouds (VPCs) are essential for infrastructure on AWS, providing resource segregation and connectivity, but creating them can be complex. AWS offers two types of subnets within VPCs: public and private. Public subnets connect to the internet via an internet gateway and host resources with public IPs, while private subnets do not connect to the internet and only communicate with other subnets in the same VPC. The text provides a CloudFormation template to create a VPC with two private subnets, illustrating how to define subnets using AWS::EC2::Subnet resources with distinct CIDR blocks and placing them in different availability zones. The network connectivity between these subnets is managed by a route table, allowing seamless communication without additional routes, and the process of deploying this configuration is simplified through the use of CloudFormation templates, emphasizing the ease of creating VPCs with private subnets.