VPC Setup
Before we setup our cluster, we need to create a Network Environment for it to resides in. Here, we will create Server (ECS) VPC and Database (RDS) VPC. We are using hub and spoke architecture to isolate both networks, create a transit gateway to link both VPC's together, then create all other network components like subnets, route table, nacl, etc... Below is how our network will look like
Search and click VPC.
Click on Your VPCs
Click on Create VPC
Select VPC Only, Provide the VPC Name items-server-vpc and the vpc cidr range 10.0.0.0/16
Click on Create VPC
Select VPC Only, Provide the VPC Name items-database-vpc and the vpc cidr range 10.1.0.0/16
Click on Create VPC
List of all VPC's
Now that we have successfully setup both RDS VPC and Server (ECS) VPC, let's continue by setting up all required subnets.