claygregory/serverless-prune-plugin

Getting UPDATE_ROLLBACK_FAILED when running sls deploy after pruning

Closed this issue · 4 comments

Hi,

First, awesome plugin! I'm using serverless 1.9.0 and did 'sls prune -n=1', however, I cannot deploy my lambdas anymore because I'm getting UPDATE_ROLLBACK_FAILED and my CloudFormation on AWS dashboard is broken. Any ideas? As the project is not in production yet, it's ok to remove and recreate the stack again, but that would cause some problems if that would happen on production.

Ooh, that sounds like a rather nasty bug! The plugin shouldn't be deleting any CloudFormation managed resources, only versions within. But if it is, that would trigger such an error. I can't say I've encountered this before, but I'll try to investigate and see if I can reproduce.

I'm traveling this week and left laptop at home to force myself to disconnect for a few days, but I'll definitely get back with you next week!

Hi @gtennis,

So terribly sorry for the delay in getting back with you.

I've tried recreating this issue with a simple hello-world'ish Serverless project and unable to reproduce — any guidance on your situation that may point me in the right direction would be appreciated.

You probably want to look at your CloudFormation Stack, and under the Events section, see what happened.. lots of things could cause it to fail not necessarily caused by this plugin.

@dougmoscrop Great advice. I'm going to close this issue, as it doesn't seem plugin is cause. @gtennis Feel free to reopen if you confirm an issue that needs addressed in plugin. Thanks!