Building a secure network
In this recipe, we're going to build a secure network (VPC) in AWS. This network will consist of two public and private subnets split across two Availability Zones. It will also allow inbound connections to the public subnets for the following:
- SSH (port
22
) - HTTP (port
80
) - HTTPS (port
443
)
Building a secure network
Getting ready
Before we proceed, you're going to need to know the names of at least two Availability Zones in the region we're deploying to. The recipes in this book will typically deploy to us-east-
, so to get things moving you can just use the following:
us-east-1a
us-east-1b
Note
When you create an AWS account, your zones are randomly allocated. This means that us-east-1a
in your account isn't necessarily the same data center as us-east-1a
in my account.
How to do it...
Go ahead and create a new CloudFormation template for our VPC. Just a heads-up: this will be one of the larger templates that we'll create in this book:
- The first two
Parameters
correspond to the...