amazon-web-servicesaws-cloudformationaws-amplifyserverlessaws-code-deploy

AWS Serverless Error - For expression "Stacks[].StackStatus" we matched expected path: "ROLLBACK_COMPLETE" at least once


During deploying serverless api to AWS lambda, I got an error message like this:

Error: Failed to create managed resources: Waiter StackCreateComplete failed: Waiter encountered a terminal failure state: For expression "Stacks[].StackStatus" we matched expected path: "ROLLBACK_COMPLETE" at least once

What is the solution and how to solve this?


Solution

  • Go to the CloudFormation service page in the console. Look under Stacks. There will be a stack with the status of ROLLBACK_FAILED. If you look at the Events then you will see the cause.