https://pulumi.com logo
#general
Title
# general
t

thousands-london-78260

03/14/2020, 8:44 PM
Is it possible to ignore parts of the stack update? I’ve just merged a bunch of differrent stacks into one “monostack/repo” because it’s operationally much easier. But sometimes I make some changes to certain classes and I first only want to apply those updates to a certain subset of resources (for instance “staging” resources). Right now I need to diff the
pulumi up
and then manually select and set
--target
or
--target-replace
. Would be much easier if I could specify a
--ignore
where I can specify a parent URN and then it and all it’s children won’t get any changes applied. Reason I don’t want different stacks is because staging/production are linked together via a service mesh which bridges between the two and does some cool stuff, so having them in the same
pulumi up
command to manage is much easier.
or even better if in the cli I can select which changes I want to apply
(bit like
yarn --upgrade-interactive
)
w

white-balloon-205

03/14/2020, 8:57 PM
There isn’t an interactive option or ignore/skip CLi flag currently (do feel free to open an issue to suggest it!). One alternative might be to conditionally
ignoreChanges
(or even conditionally create) the resources in you program based on some config setting that is defined per stack?
t

thousands-london-78260

03/15/2020, 8:18 PM
is there some way of passing
*
to ignoreChanges?
w

white-balloon-205

03/15/2020, 9:26 PM
I don't believe there is currently - but definitely something that could be added in the future.
2 Views