-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ECS Service - KeyError: 'launchType' - _find_usage_one_cluster Method #463
Comments
This appears to happen on any ECS service that specifies Capacity Providers. In that case, the service no longer has a launchType. This also means that we're going to either need to parse and make sense of the capacity provider configuration (which looks really painful) or think about just using a CloudWatch metric for this, if possible... |
I'm beginning to finally look into this; apologies for the delay.
|
Ok, it appears that there have been some major changes to the ECS service limits/quotas that might make this quite a bit easier. According to changes made to the ECS Service Quotas documentation on August 24th of this year ( awsdocs/amazon-ecs-developer-guide@3ba9bc2#diff-d98743b56c4036e0baeb5e15901d2a73 ), there is no longer a "EC2 Tasks per Service (desired count)" ("Tasks using the EC2 launch type per service (the desired count)") limit; there is now just a "Tasks per service" limit. In addition (to complicate things a bit) there is no longer a "Fargate Tasks" limit, but rather a "Fargate On-Demand resource count" limit with a description of "The maximum number of Amazon ECS tasks and Amazon EKS pods running concurrently on Fargate in this account in the current Region." as well as a "Fargate Spot resource count" with a description of "The maximum number of Amazon ECS tasks running concurrently on Fargate Spot in this account in the current Region." These limits do, however, have CloudWatch metrics to retrieve their usage, which might be the best way to do that. |
I've just gotten confirmation from AWS Support that the new "Tasks per service" limit includes both EC2 and Fargate tasks. |
Fixes #463 - ECS and Fargate limit updates
This has been fixed in 9.0.0, which is now live on PyPI and on the Docker Hub. Thank you so much! |
This is great news! Thanks @jantman |
Bug Report
Version
awslimitchecker 8.0.2
Installation Method
Jenkins w/docker plugin
Supporting Software Versions
Actual Output
I can provide the double verbose logs internally.
Expected Output
TrustedAdvisor
Enterprise
Testing Assistance
Yes, i will be able to assist in testing pre-release code for the feature.
Thank You Jason.
The text was updated successfully, but these errors were encountered: