Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

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

Closed
dineshrathee12 opened this issue May 21, 2020 · 1 comment
Closed

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

dineshrathee12 opened this issue May 21, 2020 · 1 comment
Assignees

Comments

@dineshrathee12
Copy link

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 ?

@joelbrandenburg joelbrandenburg self-assigned this Aug 24, 2020
@joelbrandenburg
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants