John Ramey03/24/2022, 3:34 PM
. 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 Kho03/24/2022, 3:38 PM
If you want to use it in the a task, you can do
with Flow(...) as flow: PrefectSecret("YOUR_SECRET")
and then it will fetch it during runtime and your Flow is executing. Does that make sense?
John Ramey03/24/2022, 4:48 PM
Kevin Kho03/24/2022, 4:53 PM