Frederik Hagelund07/07/2022, 7:58 AM
prha07/07/2022, 4:51 PM
Stephen Bailey07/07/2022, 5:25 PM
submodule. Within that we set a
. Then, in our job code, we can do things like
I tried to manage all our secrets via the environment initially, but it was cumbersome. So now, i just make sure our prod and stage deployments have DAGSTER_WORKSPACE set and the code handles the rest
from my_repo.common import CURRENT_WORKSPACE if CURRENT_WORKSPACE == "prod": my_secret = fetch_secret("foo") else: my_secret = "bar"