Amazon Elastic Container Service
Developer Guide (API Version 2014-11-13)

Invalid CPU or memory value specified

When registering a task, if you specify an invalid 'cpu' or 'memory' setting you will receive the following error:

An error occurred (ClientException) when calling the RegisterTaskDefinition operation: Invalid 'cpu' setting for task. For more information, see the Troubleshooting section of the Amazon ECS Developer Guide.

To resolve this issue you must specify one of the following valid CPU and memory settings:

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