Skip to content

Commit

Permalink
Correct warning on max CPU Count for fargate
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnPreston committed May 11, 2023
1 parent 5b96f57 commit b8b6c6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ecs_composex/compose/compose_services/docker_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,5 +195,5 @@ def set_compute_resources(service, deployment):
service.cpu_amount = (
max(cpu_resa, cpu_alloc) if (cpu_resa or cpu_alloc) else NoValue
)
if isinstance(service.cpu_amount, int) and service.cpu_amount > 4096:
LOG.warning(f"{service.name} - Fargate does not support more than 4 vCPU.")
if isinstance(service.cpu_amount, int) and service.cpu_amount > 16384:
LOG.warning(f"{service.name} - Fargate does not support more than 16 vCPU.")

0 comments on commit b8b6c6b

Please sign in to comment.