hello. what's the right way to manage environment variables in Prefect ? I generally use decouple to make my environment variables very explicit and the transition between local development and deployment, straightforward. It does not seem to work with Prefect though (Prefect flows don't seem to have access to environment variables through the decouple machinery). I've been reading the docs and the closest thing I could find to covering environment variables is the how-to doc on profile&settings ? Is that the right path ?
n
Nate
06/10/2024, 5:39 PM
hi @Fran - when you have a deployment, you can set
env
that flow runs from that deployment should have access to
see these docs
when running flows that are not deployed, all the standard python mechanics would be true, that is, you need to somehow set an env var if you want it to be available
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.