Hi all, I’v created a couple of secrets on prefect...
# prefect-community
x
Hi all, I’v created a couple of secrets on prefect cloud and I am trying to test a flow locally that leverages these secrets, but when I run I get the follows error
k
Hey @Xavier Witdouck, next time if you could compress these messages into one, it would help because the main channel can move quickly sometimes so having all the info in one thread helps. For this, if you use
flow.run()
, it will use local secrets by default. If you register and run on Cloud, it will use the Cloud secrets. To use Cloud secrets on
flow.run()
, you can export the env var
Copy code
PREFECT__CLOUD__USE_LOCAL_SECRETS=false
and this will use the Cloud secret. You can also add it in the
config.toml