Hugo Kitano
06/22/2021, 5:49 PMfrom prefect import Client
client = Client()
client.set_secret(name="MYSECRET", value="MY SECRET VALUE")
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:
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 secretKevin Kho
export PREFECT__CLOUD__USE_LOCAL_SECRETS=false
Kevin Kho