https://pulumi.com logo
b

billions-lock-80282

07/08/2019, 10:33 AM
Hi, is there a built in flag that allows you to turn resources on and off easily or do we just need to wrap if in an if statement? I know you can do this in terraform with the count function. Just wondered if Pulumi has something similar
h

high-translator-22614

07/08/2019, 1:14 PM
most resources you'd have to wrap in an
if
. I think there's a few scaling groupish stuff that have a count.
s

stocky-spoon-28903

07/08/2019, 1:21 PM
Yup, the if statement is what you want here - often the resources you want to enable and disable together are related so this is a much cleaner pattern than TF has
h

high-translator-22614

07/08/2019, 1:22 PM
(see also: me making components everywhere)
b

billions-lock-80282

07/08/2019, 1:33 PM
ok great, thanks