Hi all, Any way to always force a no-op for an ent...
# typescript
s
Hi all, Any way to always force a no-op for an entire pulumi project? I want to force skip the contents of a pulumi project based on a variable exported by my infrastructure project. Thanks!
w
What do you mean by "force a no-op"? If you want a sbset of the resources to not be applied in a given case - you can put them inside and
if () { }
. If you want to ignore possible changes to some resources under some condition, you can add
ignoreChanges: [...]
to resource options, setting the ignore bit on any properties that might be changed by your other stack.
s
Yeah, I thought there would a way to just bail out early based on a condition instead of having the entire index.ts inside an
if () { }
w
You could conditionally
require()
the file I suppose? There are several options from a JS/TS Code structure perspective.