<@ULVA73B9P> oi
# ask-marvin
n
@Marvin oi
m
Hello, how can I assist you today? If you have questions or need support with Python, data engineering, software development, or anything regarding Prefect, feel free to ask.
n
@Marvin how do i upgrade from agents to workers
🧐
@Marvin what worker would I use if I have an AWS account
m
To set up a worker on AWS with Prefect, you can use an ECS worker which executes flow runs as ECS tasks. Here's how you can get started: 1. Create a work pool by running:
Copy code
prefect work-pool create --type ecs my-ecs-pool
2. Start a worker for the pool:
Copy code
prefect worker start --pool my-ecs-pool
It's also common to deploy the worker as an ECS task. The worker may work without any additional configuration, but this depends on your specific AWS setup. You should review the work pool editor in the Prefect UI to see the available options. By default, the worker will register a task definition for each flow run and run a task in your default ECS cluster using AWS Fargate, inferring subnets from your default VPC. If you don't have a default VPC, you will need to provide a VPC ID or set up the network configuration manually. To read more on the Prefect AWS ECS worker setup, you can visit the documentation here. Please note that if you have a GCP account, and not AWS, the process will be slightly different and you can find the documentation for setting up a worker on GCP here. Ensure you're following the guide that matches your cloud provider.