https://prefect.io logo
s

Sarah Floris

03/15/2022, 5:53 PM
Is there an easy way to get my secrets from local .env file into Prefect Cloud?
k

Kevin Kho

03/15/2022, 5:54 PM
Probably the easiest is loading it in and using this:
Copy code
from prefect import Client

client = Client()
client.set_secret(name="MYSECRET", value="MY SECRET VALUE")
s

Sarah Floris

03/15/2022, 8:20 PM
And I assume I have to do that every time I register my flow with new updates?
k

Kevin Kho

03/15/2022, 8:22 PM
I don’t see why if the secrets stay the same?
8 Views