If you are using AWS Fargate via AWS Cloudformation and are receiving an error "No Fargate configuration exists for given values", you are most likely not specifying correct values for RAM in your Task definition


In "standard" (non-Fargate) ECS Task, you can have memory values sliced and defined as you want, however in Fargate you need to specify those with the following values:


0.5GB, 1GB, 2GB - Available cpu values: 256 (.25 vCPU)


1GB, 2GB, 3GB, 4GB - Available cpu values: 512 (.5 vCPU)


2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB - Available cpu values: 1024 (1 vCPU)


Between 4GB and 16GB in 1GB increments - Available cpu values: 2048 (2 vCPU)


Between 8GB and 30GB in 1GB increments - Available cpu values: 4096 (4 vCPU)


More details here