Skip to content
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

add fargate service quotas #532

Merged
merged 1 commit into from
Jul 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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