https://prefect.io logo
#prefect-community
Title
# prefect-community
x

Xavier Witdouck

05/18/2022, 4:35 PM
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

Kevin Kho

05/18/2022, 5:25 PM
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
5 Views