Can anyone point me to docs on resource lifecycle?...
# python
s
Can anyone point me to docs on resource lifecycle? Specifically
create_before_destroy
. Can't find anything on the site or slack search
b
By default we create the new resource before destroying the old one, but you can override that by using deleteBeforeReplace
s
Hmm thanks. The docs for
acm.Certificate
say otherwise...is it an exception?
b
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
Thanks!