awsdocs / amazon-ecs-developer-guide

The open source version of the Amazon ECS developer guide. You can submit feedback & requests for changes by submitting issues in this repo or by making proposed changes & submitting a pull request.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't see the ECS limits using service-quotas API

dineshrathee12 opened this issue · comments

Tried for ECS It is not listing service quotas for the specified AWS service (ECS) in my AWS Account....

➜  ~ aws service-quotas list-service-quotas --service-code ecs
{
    "Quotas": []
}
➜  ~

Checking list all default service quotas for the specified AWS service - Able to see

➜  ~ aws service-quotas list-aws-default-service-quotas --service-code ecs  --region eu-west-1 --query "Quotas[*].{ServiceName:ServiceName,QuotaName:QuotaName,QuotaCode:QuotaCode,Value:Value}" --output table
-------------------------------------------------------------------------------------------------------------------------------------------------------
|                                                             ListAWSDefaultServiceQuotas                                                             |
+------------+---------------------------------------------------------------------------+-------------------------------------------------+----------+
|  QuotaCode |                                 QuotaName                                 |                   ServiceName                   |  Value   |
+------------+---------------------------------------------------------------------------+-------------------------------------------------+----------+
|  L-21C621EB|  Clusters per account                                                     |  Amazon Elastic Container Service (Amazon ECS)  |  10000.0 |
|  L-86C34207|  Container instances per cluster                                          |  Amazon Elastic Container Service (Amazon ECS)  |  2000.0  |
|  L-08804B4B|  Public IP addresses for tasks using the Fargate launch type              |  Amazon Elastic Container Service (Amazon ECS)  |  100.0   |
|  L-9EF96962|  Services per cluster                                                     |  Amazon Elastic Container Service (Amazon ECS)  |  1000.0  |
|  L-92E49DE3|  Tasks using the EC2 launch type per service (the desired count)          |  Amazon Elastic Container Service (Amazon ECS)  |  1000.0  |
|  L-A6B4929D|  Tasks using the Fargate Spot capacity provider, per Region, per account  |  Amazon Elastic Container Service (Amazon ECS)  |  250.0   |
|  L-46458851|  Tasks using the Fargate launch type, per Region, per account             |  Amazon Elastic Container Service (Amazon ECS)  |  100.0   |
+------------+---------------------------------------------------------------------------+-------------------------------------------------+----------+

I've AWS CLI version

➜  ~ aws --version
aws-cli/1.18.64 Python/3.7.4 Linux/4.14.138-114.102.amzn2.x86_64 botocore/1.16.14

Could you please confirm list-service-quotas is blank...
Any Suggestions here please ?

The reason for this is because there are two types of quotas - default quotas and applied quotas. Default quotas show you the default value for all AWS accounts. Applied quotas show your accounts specific quota, which would be different than the default quota if you've requested and been granted a quota increase.

When you list the service quotas for a specific service, you are viewing your applied quotas. When you list the AWS default services quotas, you are viewing the default quotas. At the current time, Amazon ECS does not support applied quotas which is why that API returns an empty value.

I hope this clears this up. Once Amazon ECS supports applied quotas, we will update the documentation to reflect this.