Search code examples
visual-studioasp.net-core-webapiamazon-ecsaws-fargateaws-toolkit

service task stuck at pending status in aws ecs fargate when pushing docker image from visual studio 2019


I am trying to push Aspnet core project into AWS ECS Fargate from Visual Studio using AWS Tootkit following this AWS tutorial.

enter image description here

The pushing docker image and ECS fargate registeration is successful however the task is at PENDING status.

enter image description here

ECS Cluster: my-cluster:

enter image description here

Any idea please to debug please?


Solution

  • Click on Task to see more info:

    Status reason   CannotPullContainerError: Error response from daemon: Get https://xxxx.dkr.ecr.us-east-1.amazonaws.com/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
    

    Assign Public IP Address to allow Task to pull docker image from outside:

    enter image description here