https://pulumi.com logo
Title
g

great-laptop-77812

05/12/2023, 8:31 AM
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
m

millions-furniture-75402

05/12/2023, 12:56 PM
deleteBeforeReplace
in the
opts
g

great-laptop-77812

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