https://pulumi.com logo
#typescript
Title
# typescript
s

sparse-garage-28177

09/09/2019, 9:12 PM
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

white-balloon-205

09/09/2019, 10:26 PM
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

sparse-garage-28177

09/09/2019, 10:42 PM
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

white-balloon-205

09/09/2019, 10:53 PM
You could conditionally
require()
the file I suppose? There are several options from a JS/TS Code structure perspective.