aws-cdk-examples icon indicating copy to clipboard operation
aws-cdk-examples copied to clipboard

application-load-balanced-fargate-service: No Fargate configuration exists for given values: 512 CPU , 512 memory

Open FredericHeem opened this issue 3 years ago • 1 comments

Hi, While trying to deploy the application-load-balanced-fargate-service examples, CDK fails with the following error:

13:47:44 | CREATE_FAILED        | AWS::ECS::TaskDefinition                  | amazon-ecs-sample/TaskDef
Resource handler returned message: "Invalid request provided: Create TaskDefinition: No Fargate configuration exists for given values: 512 CPU
, 512 memory. See the Amazon ECS documentation for the valid values. (Service: AmazonECS; Status Code: 400; Error Code: ClientException; Reque

FredericHeem avatar Apr 19 '22 12:04 FredericHeem

Created a #2 to fix this issue of memoryLimitMiB defaulting to 512. This is not a supported task configuration in Fargate (at least anymore).

vhartikainen avatar May 30 '22 17:05 vhartikainen

Thanks for the PR ;)

dannysteenman avatar Mar 23 '23 15:03 dannysteenman