https://pulumi.com logo
Title
e

echoing-zebra-28421

05/20/2021, 10:55 PM
Hi there, Anyone know how to add and read environment variable in
pulumi.yaml
? I have variables in an .env file but when I run
pulumi up
those variables are not uploaded.
l

little-cartoon-10569

05/20/2021, 11:07 PM
The golang YAML marshaller doesn't do this, and I can't see where in the Pulumi code it might be supported. In theory you could generate your Pulumi.yaml from your environment before you run pulumi. What Pulumi property are you looking to get from the environmnet?
e

echoing-zebra-28421

05/20/2021, 11:23 PM
I wanted to do something like that. but I realized that with the .env file I can do it. Thank you very much for making that clear to me: D
l

little-cartoon-10569

05/20/2021, 11:25 PM
Not sure how I helped, but you're welcome 🙂