👋 Hello, team!
This is Karthik, I am currently working on setting up Google Kubernetes Engine using Pulumi. I have used OIDC authentication method for Google cloud provider. I have used this example,
https://github.com/pulumi/examples/tree/master/gcp-py-oidc-provider-pulumi-cloud
I extended this project to automatically export the output data to Pulumi ESC using its SDK. However, when resources are destroyed, I need to clean up the ESC data. A destroy hook which calls a python function is what I need. The
Command provider isn't the best solution, because it would programs on the command line. I just need to execute a function just after the destroy operation.