Andreas Nord
03/21/2022, 1:32 PMAnna Geller
03/21/2022, 1:42 PMexport PREFECT__CONTEXT__SECRETS__JSON_SECRET="{'a': 1, 'b': 2}"
from prefect.tasks.secrets import PrefectSecret
x = PrefectSecret("JSON_SECRET").run()
print(x)
Andreas Nord
03/21/2022, 1:58 PM[context.secrets.json_secret]
a = 1
b = 2