https://pulumi.com logo
#general
Title
# general
p

purple-train-14007

10/04/2021, 8:20 PM
Can pulumi pull in shell environment variables? Like lets say we dont want to store it in the config file but rather store some shell vars in a jenkins secret. Is there a way to access that in pulumi?
b

bored-oyster-3147

10/04/2021, 8:29 PM
if your language or platform of choice can access environment variables. Not really a pulumi limitation
👍 1
g

gorgeous-egg-16927

10/04/2021, 9:52 PM
Also note that supported env vars are documented in the API reference docs. Here’s an example for AWS region: https://www.pulumi.com/docs/reference/pkg/aws/provider/#region_nodejs
p

purple-train-14007

10/05/2021, 2:44 PM
@bored-oyster-3147 I didnt say it was a limitation of pulumi I was just intersted in seeing if pulumi can access exported variables other than from a config file. @gorgeous-egg-16927 thanks
b

bored-oyster-3147

10/05/2021, 3:30 PM
I didn't mean to imply that you said that. What I meant was, "if it were not possible, it wouldn't be because of pulumi"
p

purple-train-14007

10/06/2021, 12:58 AM
No worries 😉