I have docker container stored on AWS ECR, using this container I have created Task . When I run Task over Fargate , the service moves from PROVISIONING > PENDING (red color) > STOPPED states .
There is no log either in Service Event , or CloudWatch . Absolutely no way to know what is the real problem .
Any idea which way to move, AWS document did not helped.
The AWS Fargate has a simple but scuttle info missing , this is what has lead you to your issue .Let me explain step by step.
First step is to create a Task definition , when you do that you can define
This is equivalient to /bin/ls > /list.txt | echo /list.txt .
Please note the spaces in between has to be replaced by comma. What AWS Farget team forgot was that in the TaskDefinition > Add Container section in the wizard , this comma delimiter echo,helloworld is provided in the text box [![enter image description here][1]][1]. But in the Task form there is not such info . This is very confusing.
One last thing , AWS Fargate has very limited info for debugging. Here are my tips
Hope it helps