This Terraform Module deploys Grafana on ECS Fargate with an ALB on top of an ECS Cluster.
- See the root README for instructions on using Terraform modules.
- See variables.tf for all the variables you can set on this module.
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:
- Deploy the requested number of Tasks across an ECS cluster based on the
desired_number_of_tasks
input variable. - Restart tasks if they fail.
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.