Dima Anoshin
06/14/2023, 5:05 AMprefecthq/prefect:2-python3.10
but I want to run a dbt command and dbt sits in another Repo, in ECR <http://999999999999.dkr.ecr.us-east-1.amazonaws.com/analytics_dbt:latestI|999999999999.dkr.ecr.us-east-1.amazonaws.com/analytics_dbt:latestI>
I want to understand, how I can leverage the Prefect agent and execute dbt in another container? Should it lunch 2 containers?Dmytro Ponomarchuk
06/14/2023, 7:20 AMDeployment.build_from_flow(
flow=flow,
name=name,
description=description,
tags=tags,
schedule=schedule,
parameters=parameters,
work_queue_name=work_queue_name,
infrastructure=ECSTask.load(ECS_dbt_block_name),
)
Another approach is to git clone
your dbt repo every time you start the ECS container (run the dbt Flow) in default ECS image.Dima Anoshin
06/14/2023, 4:11 PM