Oliver Lammas
07/29/2025, 11:43 PMprefect work-pool create --type ecs:push --provision-infra my-ecs-pool2
I get
prefect work-pool create --type ecs:push --provision-infra my-ecs-pool2
16:40:44.087 | INFO | prefect - Starting temporary server on <http://127.0.0.1:8147>
See <https://docs.prefect.io/v3/concepts/server#how-to-guides> for more information on running a dedicated Prefect server.
Unknown work pool type 'ecs:push'. Please choose from azure-container-instance, cloud-run, cloud-run-v2, docker, ecs, kubernetes, process, vertex-ai.
16:40:45.417 | INFO | prefect - Stopping temporary server on <http://127.0.0.1:8147>
FYI
prefect --version
3.4.10
Marvin
07/29/2025, 11:43 PMMarvin
07/29/2025, 11:43 PMecs
with the :push
suffix.
Here's the correct command you should use:
bash
prefect work-pool create --type ecs --provision-infra my-ecs-pool2
The error you're seeing is because ecs:push
is not a valid work pool type. The available work pool types are:
- azure-container-instance
- cloud-run
- cloud-run-v2
- docker
- ecs
- kubernetes
- process
- vertex-ai
When you create an ECS work pool, it will automatically be configured as a push pool with the necessary infrastructure if you use the --provision-infra
flag.
The --provision-infra
flag will:
1. Create an IAM user for managing ECS tasks
2. Create and attach an IAM policy for managing ECS tasks
3. Store generated AWS credentials in a block
4. Create an ECS cluster for running Prefect flows
5. Create a VPC with the necessary networking components for running ECS tasks
After running the command, you should be able to deploy and run flows in the created work pool without additional configuration.
Would you like me to help you with anything else regarding the ECS work pool setup?Oliver Lammas
07/29/2025, 11:45 PM