Daniel
07/31/2024, 9:58 AMcontext: - .env
in the prefect.yaml file do?Marvin
07/31/2024, 9:58 AMcontext: - .env
entry in your prefect.yaml
file is used to specify environment variables for your Prefect deployment.
Each item under context
can point to a file (typically a .env
file) that contains environment variables. Prefect will read these environment variables and make them available to your flows and tasks during execution.
This setup is useful for keeping sensitive information like API keys, database URLs, and other configuration data separate from your codebase.
For more details, you can refer to the Prefect deployment configuration documentation:
https://docs.prefect.io/latest/guides/prefect-deploy/
If you need more specific implementation examples or further assistance, feel free to ask!