What's the correct way to store&pass environme...
# ask-community
k
What's the correct way to store&pass environment information (like API endpoint URLs or database IPs) to flows when using Prefect Cloud? Approaches I considered (but none of them feels just right): • have multiple projects (one per enviorment), using parameters with different defaults for each environment • using agent environment variables • using secrets • storing in docker image used for flow runs
e
Personally, I prefer secrets, and use multiple secrets if different values are needed based on environment. Since things like endpoints, IPs, connection strings etc almost always have multiple projects that need them, it makes sense to store them centrally imo.
upvote 2
k
The downside of using secrets is that I can't easily override them for individual run when needed (that's possible only for Context or Env variables).