In this section, we will establish the foundational network layer and security boundaries for IELTS BandUp.
A robust network architecture is critical for protecting sensitive user data and ensuring high availability. Instead of using the default network settings, we will construct a custom Virtual Private Cloud (VPC) designed for a production-grade environment. This setup allows us to strictly control traffic flow between our application components (Frontend, Backend, Database) and the internet.
Furthermore, we will configure VPC Endpoints to allow our private containers to communicate securely with AWS services (like ECR and S3) without traversing the public internet, enhancing both security and network performance.
We will break down the infrastructure setup into the following key tasks:
ecsTaskExecutionRole to grant our Fargate containers the necessary permissions to pull images and push logs.