Skip to content

Prefect Recipes

Prefect recipes are common, extensible patterns for setting up Prefect in your execution environment with ready-made ingredients such as Dockerfiles, Terraform files, and GitHub Actions.

Recipes are useful when you are looking to deploy an agent, use event-driven flows, set up unit testing, and more.

The following are Prefect recipes specific to Prefect 2. You can find a full repository of recipes at https://github.com/PrefectHQ/prefect-recipes and additional recipes at Prefect Discourse.

Contributing recipes

We're always looking for new recipe contributions! See the Prefect Recipes repository for details on how you can add your Prefect 2 recipe, share flow best practices with fellow Prefect users, and earn some swag.

Recipe catalog

Agent on Azure with Kubernetes

Configure Prefect on Azure with Kubernetes, running a Prefect agent to execute deployment flow runs.

Maintained by Prefect

This recipe uses:

Agent on ECS Fargate with AWS CLI

Run a Prefect 2 agent on ECS Fargate using the AWS CLI.

Maintained by Prefect

This recipe uses:

Agent on ECS Fargate with Terraform

Run a Prefect 2 agent on ECS Fargate using Terraform.

Maintained by Prefect

This recipe uses:

Agent on an Azure VM

Set up an Azure VM and run a Prefect agent.

Maintained by Prefect

This recipe uses:

Flow Deployment with GitHub Actions

Deploy a Prefect flow with storage and infrastructure blocks, update and push Docker image to container registry.

Maintained by Prefect

This recipe uses:

Prefect Orion on an AKS Cluster

Deploy Prefect Orion to an Azure Kubernetes Service (AKS) Cluster with Azure Blob Storage.

Maintained by Prefect

This recipe uses: