In the case of a AWS Storage Gateway, it is the activation of the storage gateway ec2 instance that ...
s
In the case of a AWS Storage Gateway, it is the activation of the storage gateway ec2 instance that calls the storage gateway api and creates the storage gateway within the console. When I run pulumi destroy how would I cleanup the activated storage gateway? It is not a resource that pulumi created, so it is not naturally in it's deletion plan. I'm assuming there's some pulumi action condition that could be created. if pulumi_action == destroy ...... run this api call to delete it.
q
You could use the command provider to run an aws CLI command on delete: https://www.pulumi.com/registry/packages/command/api-docs/local/command/#delete_nodejs