Hi Team - Trying to use a secret I created in the Cloud UI
with Flow(name='flow_example') as flow:
my_secret = PrefectSecret("my_password")
data = needs_credentials(snow_pw=my_secret)
Error that no local variable found. Need to set to reference cloud API
k
Kevin Kho
03/04/2022, 9:23 PM
If you use
flow.run()
, it pulls local secrets by default. You can change the behavior with an env variable
PREFECT___CLOUD____USE__LOCAL_SECRETS=false
j
Jared Teerlink
03/04/2022, 9:27 PM
And that's something i put in the config.toml file?
k
Kevin Kho
03/04/2022, 9:34 PM
The env variable doesnt need to be in config but you can do that too here
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.