https://pulumi.com logo
Title
s

sparse-state-34229

01/31/2021, 8:49 AM
Can anyone point me to docs on resource lifecycle? Specifically
create_before_destroy
. Can't find anything on the site or slack search
b

brave-planet-10645

01/31/2021, 12:06 PM
By default we create the new resource before destroying the old one, but you can override that by using deleteBeforeReplace
s

sparse-state-34229

02/01/2021, 2:24 AM
Hmm thanks. The docs for
acm.Certificate
say otherwise...is it an exception?
b

brave-planet-10645

02/01/2021, 10:25 AM
I think that's an error in our docs. I'll raise an issue for it
Yes I've checked this and the docs are wrong for
acm.Certificate
. We create before destroy (and that's why we do the auto-naming with the randomly generate suffix) to minimise the downtime. I've created an issue if you want to track this: https://github.com/pulumi/docs/issues/5084
s

sparse-state-34229

02/02/2021, 7:52 PM
Thanks!