Mars
08/16/2022, 11:57 PMif __name__ == '__main__': myflow()
. This is without a running Orion server.
The code in my flow that creates the Secret block appears to work. However, when I try use my Secret block in my 2.0 flow the prefect client raises a PrefectHTTPStatusError, and says ‘Block document not found’.
In Prefect 1.0 I could use PREFECT__CONTEXT__SECRETS__
to set the values I need, but I don’t see any mention of similar functionality for 2.0.alex
08/17/2022, 12:06 AMMars
08/17/2022, 12:19 AMSecret(value="my-secret-name").save(name="somevalue")
instead of
Secret(value="somevalue").save(name="my-secret-name")
PEBKAC!