Hi, what’s the best way to switch certain flow var...
# prefect-community
j
Hi, what’s the best way to switch certain flow variables depending on execution environment? e.g. a database schema of dev vs prod? (I am using set_run_config method at the moment to switch execution between local and ECS)
k
I think it’s hard inside a flow to know what the run_config is so parameters would be the best way if you can do that, and then change the parameters based on that
j
ok got it, thanks
n
just adding on: you could have those parameters default to environment variables that you'd define on each runtime and retrieve via
os.getenv
or something, that way you can assume env specific settings without changing your code / parameter values directly