Kelvin DeCosta
10/20/2022, 4:42 PMECSTask
.
My question: Do I need to install dependencies like prefect-aws
, s3fs
etc. and register the blocks (eg: prefect block register -m prefect_aws.ecs
) in the container for the agent? Or can I just use the latest prefecthq/prefect
image?FROM prefecthq/prefect:2-python3.10
# Install dependencies
COPY requirements.txt .
RUN pip install -r requirements.txt --no-cache-dir
# Register AWS block types
RUN prefect block register -m prefect_aws.ecs
But I think this might be unused / redundantAnna Geller
10/20/2022, 4:43 PMprefecthq/prefect
image for your agentKelvin DeCosta
10/20/2022, 4:47 PMAnna Geller
10/20/2022, 4:52 PMKelvin DeCosta
10/25/2022, 5:26 PMprefect-aws
if you plan to use ECSTask
.
I ran into a KeyError: ecs-task
could not be dispatched
Also, I recently switched from S3
to private GitHub
and I had to install git
on the prefect
container's image in my ECSTask
definition