Does anyone use Pulumi for DigitalOcean? I am trying to figure out a way to force replace a droplet on every deploy. I tried using the resource name with a timestamp but ran into issues with this approach. I believe it is due to the DO firewall needing updated (see here: https://github.com/pulumi/pulumi-digitalocean/issues/256). It is kind of frustrating as to do a deployment I have to destroy my stack and redeploy (never getting to use any of the state to prevent changes to untouched resources).
09/22/2021, 8:58 PM
I haven't, but a generic pattern that works in this situation is to have two projects; one for the droplet + contents, and one for everything outside it. StackReferences to share data. That way, you can safely destroy / up the droplet stack on every deploy.
09/22/2021, 9:31 PM
Hmm it seems so obvious now. This might solve the problem. It’s def a workaround but better than the mess I have now I think…thanks!