John Ramey
03/24/2022, 3:34 PM<http://pandas.to|pandas.to>_sql
. Apologies if this is answered in docs somewhere, but how do I pass my secrets to Prefect Cloud? I have 2 cases. In the first case I can run the script locally and pass the secrets as env vars, but in the second case, I’m hoping to run the job on Prefect Cloud once a week. Any help would be great! Thanks.Kevin Kho
03/24/2022, 3:38 PMwith Flow(...) as flow:
PrefectSecret("YOUR_SECRET")
If you want to use it in the a task, you can do
Secret("YOUR_SECRET").get()
and then it will fetch it during runtime and your Flow is executing. Does that make sense?John Ramey
03/24/2022, 4:48 PMKevin Kho
03/24/2022, 4:53 PM