Issues setting secrets: ValueError: Local Secret “MYSECRET” was not found

Thanks so much for posting on Discourse!

I assume you are using Prefect Cloud backend, correct? Or are you on Prefect Server? Can you share the output of prefect diagnostics?

If you are on Cloud, you could create the Secret directly from the UI and to use it, you would need to set:

export PREFECT__CLOUD__USE_LOCAL_SECRETS=false

And if you are on Server, check this Discourse topic:

1 Like