https://pulumi.com logo
Title
d

delightful-camera-97029

04/19/2023, 8:05 AM
Another question is if I created a pulumi program which deploy • resource A • resource B • resource C I do a
pulumi up
and all three resources deployed successfully Now, I modify the pulumi program and it only have • resource A • resource B If I do
pulumi destroy
will it destroy all three resource or just the two and leave resource C un handled?
e

echoing-dinner-19531

04/19/2023, 8:31 AM
destory
is entirely based on state, not the program. So if you haven't run up since you modified the program destroy will delete all three. Sounds like you might want to look at setting the retain on delete option.
d

delightful-camera-97029

04/19/2023, 8:39 AM
got it, thanks