An Amazon ECS cluster requires a virtual robust network foundation. This section outlines the network architecture we will configure, leveraging the core AWS networking components.
AWS’s global infrastructure is built around Regions, which are physical locations worldwide where AWS clusters its data centers. Each Region is a separate geographic area.
Within each Region, there are multiple isolated locations known as Availability Zones (AZs). An AZ consists of one or more discrete data centers, each with redunant power, networking and connectivity. Using multiple AZs is key to designing highly available and fault-tolerant applications.
Regions and AZs have unique codes. For example, the Singapore region is ap-southeast-1, and its AZs are ap-southeast-1a, ap-southeast-1b and ap-southeast-1c.
To establish our own network on AWS, we will utilize Amazon Virtual Private Cloud (VPC). A VPC is an isolated virtual network on AWS, logically separated from other virtual networks. It allows you to provision a private section on AWS where you can launch AWS resources in the network you define, closely resembling to the traditional on-premises network.
Once a VPC is created, we partition it into subnets. A subnet is range of IP addresses within your VPC. Each subnet must reside within a single AZ. Deploying resources accross subnets in different AZs enhances fault tolerance.
For our Amazon ECS deployment, we will configure six subnets, strategically distributed across two AZs for high availability.
This multi-subnet, multi-AZ architecture ensures that our application is resilient and secure.