hello. i have a prefect agent work pool that was doing ecs tasks. now in prefect there is a new typ...
l
hello. i have a prefect agent work pool that was doing ecs tasks. now in prefect there is a new type of work pool: https://docs.prefect.io/2.13.8/guides/deployment/push-work-pools/#__tabbed_1_2 I tried to do it from the dashboard but I get an error. Failed due to a TaskFailedToStart error in the prefect_cloud.push_work_pool task - ResourceInitializationError: 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-west-2.amazonaws.com/”: dial tcp 34.223.25.165443 i/o timeout. Please check your task network configuration. everything is the same as the old agent besides this: [{“op”“add”,“path”“/networkConfiguration/awsvpcConfiguration/securityGroups”,“value”:[“sg-481401913-“]}] btw the prefect agent old default work pool had not infrastructure attached to it. it was using a aws ecs task block
n
hi @Luca Vehbiu - push work pools are going to run a worker (not an agent) ephemerally when its time to run a deployment assigned to that work pool that worker will need the aws creds you provide when you setup your push work pool in order to do this part
Copy code
ResourceInitializationError: 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-west-2.amazonaws.com/>": dial tcp 34.223.25.165:443: i/o timeout. Please check your task network configuration.
tldr the push work pool doesn't know about / use infra blocks, you'd do the same ecs infra config on the work pool itself or on deployments that override certain bits from that work pool
l
i have attached the aws credentials defined in a block but get the same. I also added the security group info on the job variables of the deployment but still got the same error
where can I override it?
deployment or work pool