Correct, you would deploy the agent on your infrastructure to make sure that all your code and data remain secure on your infrastructure - this is called the
hybrid model.
Regarding an easy setup with the least possible infrastructure management, you could try one of the serverless execution platforms that Prefect supports:
• ECSAgent spins up your flows as ECS tasks - all infrastructure is provisioned on-demand by AWS. Here is a blog post that explains how to set this up:
https://towardsdatascience.com/how-to-cut-your-aws-ecs-costs-with-fargate-spot-and-prefect-1a1ba5d2e2df
• Vertex agent spins up your flows on on-demand GCP VMs - this excellent tutorial explains how you could use Vertex even with a distributed Dask cluster
https://rdrn.me/scaling-out-prefect/