This Terraform Module deploys Grafana on ECS Fargate with an ALB on top of an ECS Cluster.
To run Docker containers with ECS, you first define an ECS Task, which is a JSON file that describes what container(s) to run, the resources (memory, CPU) those containers need, the volumes to mount, the environment variables to set, and so on. To actually run an ECS Task, you define an ECS Service, which can:
desired_number_of_tasks
input variable.An Application Load Balancer is a "Layer 7" load balancer managed by AWS that forwards incoming requests to the ECS Tasks (Docker containers) in your ECS Service which are running in your ECS Cluster.
It automatically discovers new ECS Tasks as they launch. A single ALB is shared among potentially many ECS Services.