Bernhard
03/12/2025, 4:25 PMMarvin
03/12/2025, 4:25 PMprefect.yaml
file. This approach allows you to specify default parameter values that will be used when the flow is triggered.
Here's a concise guide on how to achieve this:
1. Define Defaults in `prefect.yaml`:
You can specify default parameter values directly in the prefect.yaml
file under the parameters section. Here's a basic structure:
yaml
deployments:
- name: my-deployment
parameters:
param1: default_value1
param2: default_value2
2. Ensure Correct Placement:
The prefect.yaml
file should be placed in the root of your project directory. You can also specify a custom path using the --prefect-file
argument during deployment.
3. Deployment Command:
Use the prefect deploy
command to create your deployment. This command will read the prefect.yaml
file and apply the specified defaults.
For further details on configuring deployments in Prefect 3.x, you can refer to the Prefect YAML Documentation.
If you need more advanced customization or encounter issues, feel free to ask for more specific guidance.