Hi, I'm configuring API Gateway and I've got to the point where it creates all of the resources, methods & integrations, then triggers a redeployment when any of these change and recreates a stage. The problem I'm having is if I remove a route from my config the deployment is replaced before the relevant resource, method & integration is deleted, so the resultant stage still has the deleted routes available.
Is there a way that I'm missing to force pulumi to delete existing resources first before applying create & replacements? Thanks
05/12/2023, 12:56 PM
05/12/2023, 1:20 PM
Thanks I tried that - it works to force the deployment to be destroyed before being replaced, but doesn't do anything to say that resources that the deployment was previously dependent on need to be deleted before the deployment can be replaced