A few months ago, I wrote an introduction to networking for Google Cloud. Today I find myself working with AWS, so I’m going to explore networking on the AWS platform.
I’m going to be using AWS CLI for my examples, so I recommend you install it and configure it before proceeding.
Virtual Private Clouds (VPC), Subnets and Security Groups (SG)
To get started we need to get familiar with these 3 fundamental concepts:
- Virtual Private Cloud (VPC) - Refers to a network that is logically isolated from the rest of the world. A VPC is a regional resource (It can span a full region, but not accross regions)
- Subnet - A section of a VPC. Subnets exist in a single Availability Zone (AZ)
- Security Group (SG) - A virtual Firewall. Any EC2 instance must be attached to at least one Security Group. By default a Security Group allows all outbound traffic and disallow all inbound traffic