Skip to content

Prefect Recipes

Prefect recipes are common, extensible examples 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 for tutorials on how 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. See the Contributing Recipes page for a guide on creating a good recipe.

Recipe catalog

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

Maintained by Prefect

This recipe uses:

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

Maintained by Prefect

This recipe uses:

Run a Prefect 2 agent on ECS Fargate using Terraform.

Maintained by Prefect

This recipe uses:

Set up an Azure VM and run a Prefect agent.

Maintained by Prefect

This recipe uses:

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

Maintained by Prefect

This recipe uses:

Create a deployment with GitHub as a storage and Docker Container as an infrastructure

Maintained by Prefect

This recipe uses:

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

Maintained by Prefect

This recipe uses:

Execute Prefect flows in an AWS Lambda function managed by Chalice.

Maintained by Prefect

This recipe uses:

Deploy a Prefect agent to AWS ECS Fargate using GitHub Actions and ECSTask infrastructure blocks.

Maintained by Prefect

This recipe uses: