I have an ECSTask for my infra block that is setup...
# prefect-aws
a
I have an ECSTask for my infra block that is setup with a task definition ARN. However, when I run my deployment it does not use that. And then I get an error message that they are not able to receive the ecr registry auth.
Any insights, or what I should look into to get my ECSTask running properly.
It feels like when I update my ECS Task Block the changes don't apply when i run my deployment
j
could you share the error message?
a
Copy code
unable to pull secrets or registry auth: execution resource retrieval failed: unable to retrieve ecr registry auth: service call has been retried 3 time(s): RequestError: send request failed caused by: Post "<https://api.ecr.us-east-1.amazonaws.com/>": dial tcp 209.54.183.210:443: i/o timeout. Please check your task network configuration.
But I think the more important point is when i define things in my ecs task block
it doesn't do anything
for instance i defined a task definition ARN
and its not using that
it just made its own task definition revision? and is using that
j
It seems like a networking issue, perhaps your ECS cluster doesn't have access to other AWS services like ECR. I don't think I'll be able to help here, but you should probably share the JSON of your task block and maybe your agent task definition
a
Yeah the weird part is the prefect-worker-service that is on the same ECR cluster can access that ECR image
but this new task cannot
well it also feels like my ecs task block, it doesn't matter what i put for the values
j
Seems like someone posted the same problem about 8 hours ago: https://prefect-community.slack.com/archives/C048K0MGHNK/p1698139541374749
a
because i'm defining variables through the UI but they don't seem to matter
l
i have using deployment vars but it did not work. it still fails to fetch ecr images. the previous aws ecs block using a prefect agent works perfectly. any clues on how to tackle this?