Create a mixed AWS VPC with CloudFormation
Blog post from Octopus Deploy
Matthew Casperson's article, published on May 10, 2022, explores the creation of a Virtual Private Cloud (VPC) on AWS using CloudFormation, focusing on a configuration that includes both public and private subnets. It explains that public subnets connect to the internet via an internet gateway, allowing resources with public IP addresses to be accessed externally, while private subnets do not connect directly to the internet and can only communicate within the VPC. The article provides a CloudFormation template to set up a VPC with one public and one private subnet, detailing how instances in the public subnet can be accessed via the internet gateway, and instances in the private subnet can access the internet through a NAT gateway, although they cannot be accessed from the internet. This setup offers flexibility in deploying instances that need public internet access or enhanced security by being shielded from public traffic.