https://pulumi.com logo
Title
f

future-daybreak-16512

01/17/2022, 5:25 AM
Is there any straight forward way to differentiate between Pulumi stack create and update? Usecase : I want to apply some condition while stack update only (not for stack create). I can achieve the same by set some variable in stack output and check for existence. But just wanted to know any relevant flag from Pulumi end?
e

echoing-dinner-19531

01/17/2022, 9:54 AM
I don't think we set anything for this but it feels like a bit of an odd case. A pulumi program should be defining a final goal state, why would that change between create and update?