https://pulumi.com logo
Title
b

billions-xylophone-85957

03/15/2023, 7:46 PM
is there a reason
ComponentResourceOptions
which extends
ResourceOptions
doesn't have
deleteBeforeReplace
?
CustomResourceOptions
(which also extends
ResourceOptions
) has it.
g

green-stone-37839

03/15/2023, 7:50 PM
Ultimately, you don't apply deleteBeforeReplace on the component but the custom resources within a component. Given that there is no current way to map a single resource option to N number of custom resources, it is omitted.
There is a bit more commentary here as well as what's possible today.
b

billions-xylophone-85957

03/15/2023, 7:54 PM
Gotcha, thanks, makes sense. I would call it out in BIG BOLD LETTERS in the docs though, as a fair warning :)
g

green-stone-37839

03/15/2023, 7:55 PM
It's a good point. There use to be a warning shown in the CLI if you ran into this situation, but it was removed for other reasons.