https://pulumi.com logo
Title
e

eager-parrot-83525

10/09/2021, 5:19 PM
Hey everyone, How do you destroy a stack that has an imported AWS ACM certificate without deleting the certificate?
g

green-stone-37839

10/09/2021, 7:22 PM
You should be able to accomplish this by setting the
ResourceOptions
property
protect
to true. https://www.pulumi.com/docs/intro/concepts/resources/#protect
c

curved-pharmacist-41509

10/10/2021, 12:52 AM
Protect is great to prevent you accidentally deleting a resource, but it will block the destroy. You will need to delete that resource from state before the destroy
e

eager-parrot-83525

10/10/2021, 10:29 AM
Ah perfect @curved-pharmacist-41509 Thanks! @green-stone-37839 I had
protect
set. Jake's recommendation was what I needed