I'm confused about how my ECS Task can run a docker image that is 1.5GB in size (value I see in ECR) with the ECS Task size being 0.5GB?
Any help on clarification on how Task size cpu & memory are related to the actual execution of the app would be helpful!
There is no relation at all between the size of the image and the amount of resources (cpu and memory) you assign to a task. You could instantiate a multiple GB container image with a tiny task size (like 0.5GB of memory) if all your container process does is very little and doesn't need a huge amount of memory/cpu. Conversely, you may need a gigantic task size to run a process off of a container whose originating image is just a few MB. No correlation at all.