Hi I am just setting up prefect for my Data engine...
# prefect-community
Hi I am just setting up prefect for my Data engineering team ran into one issue when trying to setup ecs fargate.
prefect agent ecs start --cluster arn:aws:ecs:us-west-2:00000000:cluster/prefect-dev --label aws-ecs
Usage: prefect agent [OPTIONS] COMMAND [ARGS]...
Try 'prefect agent --help' for help.
╭─ Error ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ No such command 'ecs'.                                                                                   │
Version:      2.0.4
API version:     0.8.0
Python version:   3.10.4
Git commit:     39db6fb1
Built:        Wed, Aug 10, 2022 1:19 PM
OS/Arch:       linux/x86_64
Profile:       mfour-dev
Server type:     hosted
also have done this
pip install prefect[aws]
Hey Hammad, I've included here some of our docs regarding agents and the correct formatting for starting an agent. This is an older syntax you are using including ecs before start. https://docs.prefect.io/concepts/work-queues/ I've also included a discourse discussion that goes into ECS on Fargate with Prefect 2.0 https://discourse.prefect.io/t/can-i-use-ecs-on-fargate-with-prefect-2-0-is-an-ecsflowrunner-on-the-roadmap/843
Hey Hammad - the
prefect agent ecs start
syntax I think is just for prefect 1.0 but it looks like you’re on v 2.0.4
👍 1
@Matt Conger @Ilya Galperin I was using below guide to set it up https://docs-v1.prefect.io/orchestration/agents/ecs.html#task-role-arn
Does 2.0 support ecs workflow with cloud prefect?
Hammad, that guide will still work great with Prefect 1.0. We are still working on some awesome features for 2.0 and will be having more ecs features on the way.