In this final step for the frontend, we define how our application container should run (Task Definition) and deploy it as a scalable service (ECS Service) connected to our Load Balancer.
The Task Definition serves as a blueprint for our application.
bandup-frontend.AWS Fargate.Linux/X86_64..5 vCPU and 1 GB Memory (Sufficient for our Next.js frontend).ecsTaskExecutionRole (Created in section 5.3.3).
bandup-fe-container..../band-up-frontend:v1.0.0).3000.
Now we deploy this blueprint into our Cluster.
bandup-cluster.
Step 1: Environment
Launch type -> FARGATE.bandup-frontend (Revision 1).bandup-frontend-service.1.
Step 2: Networking
band-up-vpc.private-subnet-1, private-subnet-2).ecs-private-sg (This allows traffic from ALB).
Step 3: Load Balancing
bandup-public-alb.bandup-fe-container 3000:3000.
80 (HTTP).target-bandup-fe.

Once the service is stable, open your web browser and navigate to the DNS name of your Application Load Balancer.
You should see the IELTS BandUp landing page loading successfully, served from your container in the private subnet.
