https://pulumi.com logo
Title
l

lively-winter-28362

10/02/2022, 11:59 PM
Hey guys! I’m having an issue where running
pulumi up
will protect everything without me asking it to protect them. Any ideas at steps I can take to fix this?
l

little-cartoon-10569

10/03/2022, 12:31 AM
Are you setting up a base
opts
and passing it to various ComponentResources? Check that opts.
Or, do you have a stack transformation set up, that adds
protect: true
to all opts?
l

lively-winter-28362

10/03/2022, 11:11 AM
@average-family-91111 Knows more, he’ll reply.
a

average-family-91111

10/03/2022, 11:12 AM
I have it set on a namespace which is a parent of everything - i want to protect the namespace but not everything under it as it doesn’t matter as much
l

little-cartoon-10569

10/04/2022, 8:22 AM
Opts are inherited through the parent relationship. Set
protect: false
on all the direct child resources of the namespace and it should sort itself out.