sorry, one more question for the channel re: deplo...
# prefect-aws
d
sorry, one more question for the channel re: deploying flows via ecs. i feel like my AWS inexperience is tripping me up somewhere. previously, i had everything setup in one EC2 instance. the agent and work pool was running in the instance. flows would get triggered from prefect, code would download from github, and all execution happened in the same environment as the work pool. now, i have an ecs pool triggering jobs. i assumed that by including the target vpc that containts the relevant ec2 instance, prefect would spin up the flow in that same machine. but, im getting "directory not found" errors. prefect is also unable to connect to airbyte (also running in that same EC2 instance). so, its pretty obvious that the worker is trying to execute the flow code somewhere other than the EC2 instance that has all of my other services on it. how do i point it to the right infrastructure? i feel like im missing something obvious in the job / task definition...
examples of error messaging
j
hey just one thing I wanted to clarify that might help: • Workers are "flow run deployers" • Workers have type and work pools have a type. Workers can only poll flow runs from a similar typed pool. • The type indicates where your flow run is being deployed to. • An
ECSWorker
is just a long lived process that run anywhere, like on an EC2. The
ecs
part indicates that this worker is deploying flow runs TO ecs as ecs tasks (where they will execute) • If you're looking to have your flow run execute on the exact same machine as your worker, you're looking for a
Process Worker
which will deploy flow runs locally to a process on that same machine
d
gotcha, thanks @Jake Kaplan
doh