To the best of my knowledge Pulumi does this automatically. You don't need to exclude them. If you didn't change their definition they will not be updated. Only that which changed will be updated. Pulumi shows a list of elements it'll update when it prompts you for yes/no on the execution.
f
faint-table-42725
10/14/2020, 4:46 PM
You can choose to only update some subset of a stack, but there’s no way to exclude. You can do that via
pulumi up --target <urn>
(you can specify multiple
--target
) and
--target-dependents
if you want dependents to be included.
i
icy-jordan-58549
10/14/2020, 5:01 PM
have you checked
protect
?
h
handsome-dinner-91163
10/14/2020, 5:42 PM
@icy-jordan-58549 Yeah, I think it only protects against deletion which not what I'm worried about
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.