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?Kelvin DeCosta
10/20/2022, 4:43 PMFROM 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
prefecthq/prefect image for your agentAnna Geller
Kelvin DeCosta
10/20/2022, 4:47 PMAnna Geller
Kelvin 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