You don't.
Under what circumstances would the tunnel be destroyed? Would it be just when the stack is being destroyed? In which case, you can just remove the stack config, as it's not being used.
c
creamy-monkey-35142
09/18/2023, 5:37 AM
I can understand that there is no way to automate it
e
echoing-dinner-19531
09/18/2023, 7:49 AM
How are you detecting the create action? I'd think you'd just be able to do the opposite of that
c
creamy-monkey-35142
09/18/2023, 7:52 AM
I’m not sure about that because I have a code block to create resource but there is no option to define code block to delete resource
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.