for an ecs work pool, how do i pass multiple conta...
# ask-community
n
for an ecs work pool, how do i pass multiple containers?
n
hi @Nikhil Joseph - what are you trying to do? deployment flow runs will execute as a single container on ECS, although you're free to create many instances of that.
n
am moving from prefect agent pool to ecs pool. and some of the flows i run require other images. an example is: i might need a selenium image running along with the prefect image. when running with agents, i could specify the task definition in an infrastructure block specifying what the task definition containers are. in the ecs pool method, it looks like the job template allows(enforces) only one container per task definition. my only other option is to pass the task definition arn(manually create the same infrastructures but this time in aws directly). i havent tried out passing arns yet soo dont really know if what am trying to achieve will work. another annoying thing i noticed, why do we have to pass an image when running
deploy()
with an ecs pool. my current scenario is: i have a built image which has all the flows which i run. but i dont have a method(or havent figured out how) to run
deploy
so that it grabs the default image n accept a path/entrypoint to the flow to run which will grab from the inferred image
update on this: can pass multiple containers using task definition arns. though i lose quite abit of features the ecs job template provides