Hey,
I am just migrating my project from Serverless 0.5.5
to 1.6.1
. Everything is going well so far, but when I want to deploy my backend it wants to create a new CloudFormation stack with all my existing tables etc. and errors:
$ sls deploy -s dev -r eu-central-1
Serverless: Creating Stack...
Serverless: Checking Stack create progress...
.....
Serverless: Stack create finished...
Serverless: Packaging service...
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading service .zip file to S3 (13.72 MB)...
Serverless: Updating Stack...
Serverless: Checking Stack update progress...
...........................Serverless: Deployment failed!
Serverless Error ---------------------------------------
An error occurred while provisioning your stack: propertiesTable
- velkomio-properties-dev already exists in <ARN>
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Your Environment Information -----------------------------
OS: darwin
Node Version: 4.7.3
Serverless Version: 1.6.1
Of course this makes sense as I have an existing CF stack from Serverless 0.5.5 called velkomio-dev-r
and the new stack (velkomio-dev
) wants to create the same resources as the old one. The easiest way would be to give the existing ARN or Stack ID to my serverless.yml
but AFAIK this is not possible.
Then I went ahead and wanted to deploy my function:
sls deploy function -f data -s dev -r eu-central-1
Serverless: Deploying function: data...
Serverless: Packaging function: data...
Serverless Error ---------------------------------------
The function "data" you want to update is not yet deployed.
Please run "serverless deploy" to deploy your service.
After that you can redeploy your services functions
with the "serverless deploy function" command.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Your Environment Information -----------------------------
OS: darwin
Node Version: 4.7.3
Serverless Version: 1.6.1
Which gives me the error because it is missing something (probably the correctly named CF stack).
Did anyone solve this issue so far? I feel like I am stuck in a loop.