AWS - ECS - Elastic Container Service#

ECS security groups diagram

  • 009 - application-load-balancer = A load balancer sits in front of our service and distributes incoming traffic across your task(s). It handles things like health checks, SSL termination, and routing traffic to healthy containers. We’ll place the load balancer in public subnets so it can receive traffic from the internet.

Application load balancer diagram

  • 010 - ecs-target-groups = A target group tells the load balancer where to send traffic. It defines:
    • Protocol and port: What protocol (HTTP/HTTPS) and which port your tasks are listening on
    • Health checks: How the load balancer determines if a target is healthy
    • Target type: Whether targets are IP addresses (for Fargate) or instance IDs (for EC2)
  • 011 - cloudwatch-log-groups
  • 012 - ecs-services