Skip to main content

ECS Cluster

Amazon ECS (Elastic Container Service) is a highly scalable, fast container management service that makes it easy to run, stop, and manage Docker containers on a cluster. An ECS Cluster is a logical grouping of tasks or services, consisting of an infrastructure of registered container instances. You can schedule tasks on your cluster by either placing tasks directly or using services. For more information, refer to the official AWS ECS documentation.

Terraform Mappings:

  • aws_ecs_cluster.arn

Supported Methods​

  • GET: Get a cluster by name
  • LIST: List all clusters
  • SEARCH: Search for a cluster by ARN

ecs-container-instance​

ECS Clusters are comprised of ECS Container Instances, which are EC2 instances that are running the Amazon ECS container agent and have been registered into a cluster. These instances provide the computing resources for your containers.

ecs-service​

ECS Services manage and run the tasks within an ECS Cluster. They define how containers are deployed on a cluster, maintaining the desired number of running tasks, and provide features such as load balancing and auto-scaling.

ecs-task​

ECS Tasks represent a running instance of an application within a cluster. A task is a logical grouping of containers, defined by a task definition, which runs on an ECS Cluster.

ecs-capacity-provider​

ECS Capacity Providers are associated with ECS Clusters and are used to manage the capacity for the resources within a cluster. They specify how tasks are placed across different types of instances within a cluster and support both on-demand and spot instances.