limited-caravan-48625
04/01/2021, 11:46 PMdist
folder and that uploads them to the bucket just fine. However the next time i build my app, that files in the dist folder are different so pulumi tries to delete all the old files and upload the new ones (because the old files are no longer in the dist folder). Is there a way to keep the old files in dist around? It will break my app during deploy if the old static content is deleted before the new version of my server is deployed (its an SSR'd SPA). Thanks!bored-oyster-3147
04/01/2021, 11:53 PMlimited-caravan-48625
04/02/2021, 12:01 AMbored-oyster-3147
04/02/2021, 12:02 AMlimited-caravan-48625
04/02/2021, 12:05 AMbored-oyster-3147
04/02/2021, 12:06 AMlimited-caravan-48625
04/02/2021, 12:07 AMbored-oyster-3147
04/02/2021, 12:08 AMlimited-caravan-48625
04/02/2021, 12:09 AMbored-oyster-3147
04/02/2021, 12:10 AMlimited-caravan-48625
04/02/2021, 12:36 AMbored-oyster-3147
04/02/2021, 12:39 AMlimited-caravan-48625
04/02/2021, 4:28 PMbored-oyster-3147
04/02/2021, 6:13 PMpulumi graph
command to see your tree. By default pulumi will try to do as many actions concurrently as it can, so order is entirely determined by which branch of your dependency tree you are looking at. Obviously if a replace must occur for a node on a branch of the tree that has children, than pulumi will first delete those children if it must.
You do have some control over how actions are taken, for instance there is the deleteBeforeReplace
argument. By default, if a resource must be replaced, it will try to create the new resource first before deleting the old one. But If you set deleteBeforeReplace
to true than it will delete the old one before creating the new one.