Hey all, I'm trying to set up a dynamic resource (in TypeScript) that creates a Vault instance via a Helm chart, initializes and unseals the server and then outputs the root token and unseal keys as secrets.
The issue I keep running into is that Pulumi tries to run the post-deployment logic (initialization + unsealing) during preview.
I've tried wrapping the result of that logic (which runs in the resource's constructor) using
but that doesn't stop Pulumi from running it.
I've considered moving the Helm chart creation out of the custom resource and making the custom resource depend on it. While that would probably work, I would prefer to bundle that into the custom resource if possible.
Is there anything you'd suggest to get around this? Thanks in advance.