Hi Team - Trying to use a secret I created in the ...
# prefect-community
j
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
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
And that's something i put in the config.toml file?
k
The env variable doesnt need to be in config but you can do that too here