https://pulumi.com logo
#general
Title
# general
f

full-dress-10026

03/01/2019, 5:51 PM
Getting this exception with a
awsx.ecs.FargateService
.
Copy code
aws:ecs:TaskDefinition (http-backend):
    error: Plan apply failed: ClientException: The sum of all container 'cpu' values cannot be greater than the value of the task 'cpu'.
        status code: 400, request id: bff208c6-3c49-11e9-a829-c73da6c6ad94
I have one container with cpu 1024 and memory 2048 and another with cpu 256 memory 512. Both of those are valid Fargate task definitions: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-cpu-memory-error.html
w

white-balloon-205

03/01/2019, 5:52 PM
cc @lemon-spoon-91807 who I know was looking at a bug in this logic recently that could be related.
l

lemon-spoon-91807

03/01/2019, 5:54 PM
Hey Kenny. Can you send me your task/container code?
f

full-dress-10026

03/01/2019, 5:55 PM
Sent via DM
l

lemon-spoon-91807

03/01/2019, 9:14 PM
Looping back on this. From investigating, it looked like Kenny had a previous version of awsx prior to the improvements we made here in cpu/memory computation
he's going to try to get onto the latest version
I get the right behavior when i try 0.16.5