DEV Community

Discussion on: Create an AWS ECS Cluster Using Terraform

Collapse
 
fomm profile image
foMM

Thank you very much for this article. I got most things working except I am getting an error for the task to pull the ecr image. service call has been retried 3 time(s): RequestError: send request failed caused by: Post https://api.ecr.ap-southeast-2.amazonaws.com/: dial tcp 99.82.184.189:443: i/o timeout

Anyone got the same issue?

Collapse
 
felipeco14 profile image
Felipe Chaves de Oliveira

The problem is that your service/task is in a private subnet, and is not able to access the ECR registry, to solve this you need to create a NAT gateway to provide such access... stackoverflow.com/a/66802973

Collapse
 
vardyng profile image
Vardy • Edited

You must use us-east-1 to uplaod the image, while pulling image doesn't necessary in us-east-1