When running locally it all works fine. But since upgrading to version 4 it won’t run in CD. SERVERLESS_ACCESS_KEY and SERVERLESS_LICENSE_KEY are both present env vars.
The odd thing is that the error message changes when I add frameworkVersion in serverless.yaml. It changes to “No version found for {whatever-I-put-as-frameworkVersion}“. It errors like that even when only running serverless --version
. Have tried SLS_DEBUG=true
but while there is additional information given when I do that locally nothing else is given when running in CD.
For frameworkVersion
in serverless.yaml I have tried without it, with ”4”
(as per this example: examples/aws-node-http-api/serverless.yml at v4 · serverless/examples · GitHub ) and tried “^4” and “4.17.1” which is the exact version in my package.json.
Any ideas why it’s behaving differently in CD? Any ideas why frameworkVersion
is behaving differently in CD? Any ideas what the properly correct value for frameworkVersion
is as it’s not listed in Serverless Framework - AWS Lambda Guide - Serverless.yml Reference . As I said it doesn’t work without it either, the only thing I can see is what I add there affects the error message.