Jenkins amazon-ecs-plugin:给定值不存在Fargate配置

时间:2018-05-24 20:47:20

标签: jenkins amazon-ecs

我正在尝试使用最近发布的amazon-ecs-plugin:1.15支持fargate,但我收到的误差低于此值。

WARNING: Slave {0} - Cannot create ECS Task
May 24, 2018 1:10:39 PM hudson.slaves.NodeProvisioner$2 run
WARNING: Unexpected exception encountered while provisioning agent ECS Slave ecs-jenkins-slave
com.amazonaws.services.ecs.model.ClientException: No Fargate configuration exists for given values. (Service: AmazonECS; Status Code: 400; Error Code: ClientException; Request ID:****-****)

Here is my config

1 个答案:

答案 0 :(得分:0)

检查您的CPU和内存量;您需要遵循特定的组合:

CPU value       Memory value
256 (.25 vCPU)  0.5 GB, 1 GB, 2 GB
512 (.5 vCPU)   1 GB, 2 GB, 3 GB, 4 GB
1024 (1 vCPU)   2 GB, 3 GB, 4 GB, 5 GB, 6 GB, 7 GB, 8 GB
2048 (2 vCPU)   Between 4 GB and 16 GB in 1-GB increments
4096 (4 vCPU)   Between 8 GB and 30 GB in 1-GB increments

参考:https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-cpu-memory-error.html