icy-controller-6092
12/08/2023, 11:54 PMlocal.Command
usage to manage custom resources that aren't supported by existing plugins, e.g. deploying a schema to a schema registry
I have a lot of micro-stacks, and sometimes the existing resources are no longer applicable if I remove a service from the cluster - but the micro-stacks may still have resources from that service in their state, e.g.
new local.Command('xyz', {
delete: 'curl --fail -X DELETE <http://some.retired.service.local/...>'
})
If you retire the service before removing the resource from the state of every mini-stack, following deployments will fail because the delete command fails. To solve this, I've started using migration scripts to stack.exportStack()
-> manual modifications -> stack.importStack(newState)
which can be used to manually filter out resources from state.deployment.resources
icy-controller-6092
12/08/2023, 11:56 PMicy-controller-6092
12/08/2023, 11:57 PMdeployment_script_version
as a static string updated each time I need to bump, but I wasn't entirely sure if there isn't already an existing mechanism in place. thank you 🙏little-cartoon-10569
12/09/2023, 12:25 AMreadme
and it'll be displayed nicely in the Pulumi console