I can see ‘MYSECRET’ on my cloud UI, so I’m sure I’m authorized etc. But I am unable to get a secret with:
Copy code
from prefect.client import Secret
# Load the value of `MYSECRET`
my_secret_value = Secret("MYSECRET").get()
Where I get a
*** ValueError: Local Secret "MYSECRET" was not found.
error.
Reading the docs, I see that it should be looking for a local secret first, and if not found, will look for a cloud secret. I think it is not looking for a cloud secret
k
Kevin Kho
06/22/2021, 5:56 PM
Hi @Hugo Kitano, will look at this. If you want to get it working in the mean, you can set
export PREFECT__CLOUD__USE_LOCAL_SECRETS=false
👍 1
Kevin Kho
06/24/2021, 2:58 PM
I got clarification on this that I should should share with you. The default for this env variable is “true” on local and running on Prefect sets it as false on Cloud to pull from Cloud
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.