Skip to content

Commit

Permalink
Merge pull request #532 from robpickerill/feature/fargate
Browse files Browse the repository at this point in the history
add fargate service quotas
  • Loading branch information
jantman committed Jul 8, 2021
2 parents 8921393 + 683118e commit 265454e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions awslimitchecker/services/ecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class _EcsService(_AwsService):

service_name = 'ECS'
api_name = 'ecs' # AWS API name to connect to (boto3.client)
quotas_service_code = 'ecs'

def find_usage(self):
"""
Expand Down Expand Up @@ -208,7 +209,9 @@ def get_limits(self):
self.warning_threshold,
self.critical_threshold,
limit_type='AWS::ECS::TaskDefinition',
limit_subtype='Fargate'
limit_subtype='Fargate',
quotas_name='Fargate On-Demand resource count',
quotas_service_code='fargate'
)
limits['Fargate Spot resource count'] = AwsLimit(
'Fargate Spot resource count',
Expand All @@ -217,7 +220,9 @@ def get_limits(self):
self.warning_threshold,
self.critical_threshold,
limit_type='AWS::ECS::TaskDefinition',
limit_subtype='FargateSpot'
limit_subtype='FargateSpot',
quotas_name='Fargate Spot resource count',
quotas_service_code='fargate'
)
self.limits = limits
return limits
Expand Down

0 comments on commit 265454e

Please sign in to comment.