Hi <#CM28LL405|> - what is the correct way to go a...
# prefect-cloud
j
Hi #CM28LL405 - 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
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
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
Yep, you can create a block in the Cloud UI or via code. See more here.
j
Thanks! Makes sense 🙂
👍 1