Can anyone explain this error message: `Cannot cre...
# prefect-getting-started
e
Can anyone explain this error message:
Cannot create a project-style deployment with work pool of type 'prefect-agent'.
? Why not? Is there no way to do deployments with
prefect-agent
with a
prefect.yaml
file?
There’s probably a good reason, I guess I’m still struggling a bit to understand some of the concepts
a
Hey @Eivind Hyldmo! Using
prefect deploy
with a
prefect-agent
work pool isn’t supported because Prefect agents rely on configuring storage and infrastructure blocks, which is not supported via a
prefect.yaml
file. A worker is equivalent to a infrastructure block + an agent, so we recommend picking a work pool type that matches the type of infrastructure block you were planning on using( e.g.
ECSTask
block -> ECS work pool,
KuberenetesJob
block -> Kubernetes work pool).