0

I am trying to create an application where every time user clicks a button, I create a task on ECS. The problem is when the CPU is fully utilized in an ECS cluster, the auto-scaling group is not spinning up more EC2 instances in that cluster. Thus, my task creation request fails with the error: RESOURCE: CPU.

Parameters I am using:

ECSTaskCpu:
   Type: Number
   Default: 1024

ECSTaskMemory:
    Type: Number
    Default: 1970

ECSContainerCpu:
    Type: Number
    Default: 1024

ECSContainerMemory:
    Type: Number
    Default: 1970

ECSContainerMemoryReservation:
    Type: Number
    Default: 1970

InstanceType: t2.small

Please help. Thanks in advance.

Piyush Garg
  • 133
  • 1
  • 2
  • 6
  • 1
    here is step by step guide to achieve the auto scaling feature, please go through the doc hope it will help you. https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-configure-auto-scaling.html – MrOverflow Jan 04 '22 at 18:20
  • Thanks a lot @MrOverflow for the help. – Piyush Garg Jan 05 '22 at 13:11

0 Answers0