About Networking, we have some components such as VPC (Virtual Private Server), Subnets, Internet Gateway and Route Table (and also have Security Group).
We need to create a VPC before we can create public subnets, route table, security group and internet Gateway.
Based on the architecture above, we know that we need to create a VPC with CIDR 10.10.0.0/16 in region Singapore, which has 2 Public Subnets with CIDR 10.10.1.0/24 and 10.10.2.0/24. Public Subent 1 resides in ap-southeast-1a and the other resides in ap-southeast-1b.
The purpose of the Internet Gateway is to enable the Instance in the public subnet to communicate with the Internet.
The Route Table will have 2 public Subnet associations, which will help the Instances in two public Subnets to communicate with the Internet
We need to create a Security Group for EC2, with inbound rules that allow ALB and SSH connections from our local machine. Plus, security group for ALB allow trafic from internet.
Next, we will continue with module Compute