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

fresh-flag-12765

03/25/2019, 6:12 PM
Hey, is there a shorthand to "use existing value for this stack, otherwise set to ..."? For example, I want to use the latest AMI for an EC2 instance, unless I am referring to a server that already exists, in which case I want to leave it alone so it doesnt redeploy?
I say shorthand, because I could do a
StackReference -> getOutput
dance, but would prefer not to if there's a shorter way 🙂
w

white-balloon-205

03/25/2019, 6:26 PM
There is not currently - but https://github.com/pulumi/pulumi/issues/2277 is tracking this.
f

fresh-flag-12765

03/25/2019, 6:30 PM
Oh cool, thanks. That would be a nice way to solve it.
2 Views