https://prefect.io logo
j

Jesper Bruun Hansen

11/08/2022, 7:06 PM
Hi #prefect-cloud - what is the correct way to go about environment variables? Can I somehow pass them to my deployment? Or what is the “best practice” approach here? Btw I’m using a Docker container as infrastructure
1
j

Jeff Hale

11/08/2022, 7:10 PM
Hi Jesper. Assuming you want to use the values in your Flow, the best practice is to put them into a block of type JSON, Secret, Date Time, or String.
j

Jesper Bruun Hansen

11/08/2022, 7:13 PM
Ah, so I create that Block in Cloud UI, pass in the value from here, and then reference the Block with name from my Code -right?
j

Jeff Hale

11/08/2022, 7:17 PM
Yep, you can create a block in the Cloud UI or via code. See more here.
j

Jesper Bruun Hansen

11/08/2022, 7:17 PM
Thanks! Makes sense 🙂
👍 1
5 Views