Actually, calling preview/destroy probably doesn't help you but the example is still good.
c
creamy-nail-67991
11/22/2021, 5:45 PM
@bored-activity-40468 Thank you for your response.
The preview - destroy will not work in my case as the
PreviewAsync
command returns the changes of the stack for an update. The preview before the destroy is just to ensure that we will not be deleting something we shouldn't be.
The resource you provided though is quite neat!
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.