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

Cannot Pull Container Image Error

When a Fargate task is launched, it requires a public IP address to be assigned to the task elastic network interface, and a route to the internet, or a NAT gateway that can route requests to the internet, to pull container images. If you receive an error similar to the following when launching a task, it is because a route to the internet does not exist:

CannotPullContainerError: API error (500): Get net/http: request canceled while waiting for connection"

To resolve this issue, you must specify ENABLED for Auto-assign public IP when launching the task. For more information, see Running Tasks.