https://pulumi.com logo
f

future-refrigerator-88869

11/05/2021, 2:26 PM
Quick question: Can I somehow configure the contents of the
Pulumi.yaml
file via env variables ? I would like to get a stack output from CI/CD but I don't really want to create a Pulumi.yaml file in the project I'll be running this.
pulumi stack output -s org/project/stack
p

prehistoric-activity-61023

11/05/2021, 2:45 PM
out of curiosity - how is it possible you have a working (I assume) project without Pulumi.yaml file?
f

future-refrigerator-88869

11/05/2021, 2:59 PM
I have a devops project where i have all pulumi settings. For simplicity lets say that the devops project creates an ECR In another project (git repo), lets call this API, i want to build and push an image to the ECR for this repo. I don't need pulumi for this but I do want to get the dynamic repository URL for it which is exported from the ECR project šŸ™‚
does that make sense ?
p

prehistoric-activity-61023

11/05/2021, 3:04 PM
Oh, I see.
to sum up: you don’t actually have a separate pulumi project but you want to get some stack outputs from another one
f

future-refrigerator-88869

11/05/2021, 3:05 PM
Correct
p

prehistoric-activity-61023

11/05/2021, 3:06 PM
you should be able to get it with:
Copy code
pulumi -s <org-name>/<project-name>/<stack-name> stack output
(assuming your pulumi cli is already authenticated)
wait - you actually wrote the same line above šŸ¤”
didn’t it work for you?
f

future-refrigerator-88869

11/05/2021, 3:08 PM
It did work šŸ˜„ I just posted it here as resolution in case others need it. I found the
--stack
option after i posted
p

prehistoric-activity-61023

11/05/2021, 3:09 PM
F… me - I need a break šŸ˜„ Either you edited your message after I posted my question (but there’s no ā€œeditedā€ so you did not) or I really need another ā˜• .
ā¤ļø 1
šŸ˜† 1