Hi, is there a built in flag that allows you to tu...
# general
b
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
most resources you'd have to wrap in an
if
. I think there's a few scaling groupish stuff that have a count.
s
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
(see also: me making components everywhere)
b
ok great, thanks