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
emre
02/26/2021, 1:15 PM
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
Kamil Okáč
03/05/2021, 10:04 AM
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).
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.