The maximum number of capacity providers per cluster has been exceeded
Jump to navigation
Jump to search
↑ https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html
Amazon allows to create a maximum of 10 capacity providers per cluster, and cannot be increased.[1] If you try to create a new capacity provider and have exceed the limit you will get the following error: the maximum number of capacity providers per cluster has been exceeded
Contents
Check if your capacity provider is in use by an Amazon ECS service in the capacity provider strategy[edit]
https://aws.amazon.com/premiumsupport/knowledge-center/ecs-capacity-provider-error/
#!/bin/bash cluster=clustername capacityprovider=capacityprovidername services=$(aws ecs list-services --cluster ${cluster} | jq --raw-output '.serviceArns[]') aws ecs describe-services \ --cluster ${cluster} \ --services ${services} \ | jq -r --arg capacityprovider "${capacityprovider}" \ '.services[] | select(.capacityProviderStrategy[]?.capacityProvider == $capacityprovider) | .serviceName'
aws ecs describe-clusters --cluster mycluster | jq '.clusters[].defaultCapacityProviderStrategy'
Related[edit]
- When you specify a capacity provider strategy, the number of capacity providers that can be specified is limited to 6.
aws ecs create-capacity-provider
- AWS ECS Cluster Auto Scaling (CAS)
Activities[edit]
- Read How do I resolve the DELETE_FAILED error when deleting the capacity provider in Amazon ECS?
- Read Jan 2020 article: Deep Dive on Amazon ECS Cluster Auto Scaling
See also[edit]
aws ecs [ create-capacity-provider | delete-capacity-provider | describe-capacity-providers | put-cluster-capacity-providers | update-capacity-provider ]
- Amazon ECS, Service, Tasks (Task overview), capacity providers, Cluster Auto Scaling (CAS),
aws ecs, ecs-cli, ~/.ecs/config
, AWS Copilot, AWS Fargate, AWS CloudWatch Container Insights,/etc/ecs/ecs.config
, Security group (SG), container agent, task definition, Amazon ECS events, best practices, Amazon ECS Exec Checker, Amazon ECS Agent, Service Connect,AWSServiceRoleForECS
, Terraform ECS, AWS ECS Rolling deployments
Advertising: