Skip to main content

Capacity Provider

A Capacity Provider in Amazon ECS (Elastic Container Service) is used to manage the infrastructure that your application tasks are deployed on. It helps in optimizing the utilisation and scaling of compute resources for your container workloads. Capacity Providers allow for efficient hardware usage by automatically adjusting resources based on the configured scaling policies. They are essential for managing container instances and Fargate services. For more detailed information, refer to the official AWS documentation on ECS Capacity Providers.

Terraform Mappings:

  • aws_ecs_capacity_provider.arn

Supported Methods​

  • GET: Retrieve information about a specific ECS Capacity Provider.
  • LIST: List all ECS Capacity Providers available in your environment.
  • SEARCH: Search for ECS Capacity Providers based on specified criteria.

autoscaling-auto-scaling-group​

The ECS Capacity Provider is often linked to an Auto Scaling Group in AWS. This connection allows the Capacity Provider to implement scaling policies that adjust the number of instances in your Auto Scaling Group, ensuring that your containerised applications have the necessary resources to run efficiently and are able to dynamically scale in or out in response to demand.