Setting up two VPCs
Think of VPC as your data center in the cloud, but instead of spending months or years setting up that data center, it's now a matter of a few clicks (API calls).
VPC provides you with a logically isolated section in the cloud where you can launch your AWS resources inside the virtual network you provide. Network isolation offers you other advantages, such as choosing your IP address range, defining your subnets, and configuring the route table and gateways, which we will discuss in detail later in this chapter.
The architecture we will build in this chapter is as follows:
- A VPC in two availability zones (
us-west-2
Oregon) and (us-east-2
Ohio). - Each availability zone will have two subnets (Oregon:
10.0.1.0/24
,10.0.4.0/24
inus-west-2a
,10.0.2.0/24
,10.0.5.0/24
inus-west-2b
, and10.0.3.0/24
,10.0.6.0/24
inus-west-2c
; Ohio:172.16.1.0/24
,172.16.4.0/24
inus-east-2a
,172.16.2.0/24
,172.16.5.0/24
inus-east-2b
, and172.16.3.0/24
,172.16.6...