0

How do you use Pulumi to destroy resources like CloudFront distributions (which need to be disabled before they can be destroyed) that require other operations to be preformed before they can be removed. I cannot seem to find a way to add custom destroy logic to a Pulumi stack. Does anyone have experience doing this?

Evan Snapp
  • 523
  • 5
  • 21
  • What happens when you try and do a normal pulumi destroy? If the provider is implemented correctly, it'll do a disable then poll for disabled status then do a delete I think. – John B Apr 06 '21 at 04:50

1 Answers1

1

You cannot alter pulumi destroy logic as far as I know. Its not even in the code you write (its tied to resources in the stack, when you run pulumi destroy your code is not being called) so...

4c74356b41
  • 69,186
  • 6
  • 100
  • 141