'Serverless 3 project newly upgraded from 2 - cannot update stack / cannot create new changeset
I've been using Serverless for about a year and a half - I love it. Recently two projects were upgraded from version 2 to 3. The first deploy worked fine, but all subsequent ones are failing for the same reason.
The first thing that will happen is it will get to:
Waiting for new change set to be created
Change Set did not reach desired state, retrying
then this will repeat over and over.
Change Set did not reach desired state, retrying
So then I cancel the process and try again and then get:
Cannot delete ChangeSet in status CREATE_IN_PROGRESS
When I go to the AWS console and check on the stack - there are no changes, no failures, or any indication it tried to do anything.
The things I'm thinking but know I must be wrong about are:
Somehow it's got a completely different set of AWS credentials and has tried to create the stack in another account - This can't be correct because it worked one one stack.
It's not actually talking to AWS and thinks it needs to create the stack based on the lack of connection - surely it realises when this happens... I've even tried without internet and got told so.
I'm so confused. Any help will be massively appreciated!
[EDIT] Update - After waiting some time the message about CREATE_IN_PROGRESS will go back to the first message.
[EDIT2] It seems if I just let it fail for 5 mins it will eventually work
Solution 1:[1]
I was also upgrading the version to v3 and this same error happened. The thing I did was to delete the CloudFormation stack from the AWS console and run the deploy command again.
The deploy recreates the stack on CF and the command worked. After that I ran it again to validate, and the command execution were successful.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Alejandro Barone |