PN
09/03/2024, 8:34 AMMarvin
09/03/2024, 8:35 AMprefect.yaml
file:
yaml
deployments:
- name: demo-deployment
entrypoint: demo_project/demo_flow.py:some_work
work_pool:
name: local
job_variables:
env:
EXECUTION_ENVIRONMENT: "production"
MY_NOT_SO_SECRET_CONFIG: "some_value"
2. Passing Variables via the CLI:
You can also pass job variables using the CLI when you run the deployment:
shell
prefect deployment run \
--id "your_deployment_id" \
--job-variable MY_NEW_ENV_VAR=42 \
--job-variable HELLO=THERE
3. Automations and UI:
You can pass a dictionary of variables into your flow run infrastructure via automations, including those rendered from Jinja templates.
For more details, you can refer to this guide.
Isn't that thrilling?PN
09/03/2024, 8:37 AM