9

I'm trying to deploy a Lambda function inside Cloud9, but it is failing.

When I right-click on the function and click Deploy, I get Application deployment failed, and then a popup:

AWS CloudFormation Deployment Errors
Stack:arn:aws:cloudformation:* is in UPDATE_COMPLETE_CLEANUP_IN_PROGRESS state and cannot be updated.
live-love
  • 48,840
  • 22
  • 240
  • 204
Gina
  • 91
  • 1
  • 1
  • 2

5 Answers5

2

I ran into this issue deploying using the serverless framework.

The solution ended up just being waiting, but it took almost a full hour for the state to clear itself. There were no new events showing up. I just had to wait a long, long time.

aardvarkk
  • 14,955
  • 7
  • 67
  • 96
1

Cloudformation throws this error when part, or a sub-stack, of the CloudFormation template, could not be updated or rolled back properly. This can happen if something modified the portion in question outside of what the template says. Here is an excerpt from the docs regarding this issue:

A nested stack might fail to roll back because of changes that were made outside of AWS CloudFormation when the stack template doesn't accurately reflect the state of the stack. A nested stack might also fail if an Auto Scaling group in a nested stack had an insufficient resource signal timeout period when the group was created or updated.

Please read Troubleshooting AWS CloudFormation to find more information about your issue.

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
guzmonne
  • 2,490
  • 1
  • 16
  • 22
1

If your deployment is building another Stack in CloudFormation, you may want to check for existing ones with the same name that may be conflicting with the Stack created by your deployment.

Go to CloudFormation, find the conflicting Stack, delete all resources (in that stack), and finally delete the stack.

Deploy again and it should work this time.

chris
  • 2,490
  • 4
  • 32
  • 56
0

Waiting for 5 minutes, and then trying the deployment again worked for me.

Matthew
  • 1,630
  • 1
  • 14
  • 19
0

Have a look at cloudformation to understand what is failing. It seems stuck in IN_PROGRESS state probably due to retries but it will eventually complete as a failure after several failed attempts.

Cap Barracudas
  • 2,347
  • 4
  • 23
  • 54