github-action icon indicating copy to clipboard operation
github-action copied to clipboard

There is no option to pin specific version of serverless

Open santhosh-vikraman opened this issue 2 years ago • 4 comments

Please add provision to support specific version

santhosh-vikraman avatar Sep 18 '23 05:09 santhosh-vikraman

Created PR #90 to address this.

ryanlawson avatar May 17 '24 23:05 ryanlawson

I am seriously giving up on serverless unless there is a way to pin it. My rust builds are failing and there is no error message at all. All I can say for sure is the serverless version changed. But I can't roll back and test.

thrichardson-twist avatar Sep 18 '24 23:09 thrichardson-twist

There is a way to do this. For Serverless Framework Version 4 you can add the frameworkVersion property to your serverless.yml with a specific version. More details can be found here: https://www.serverless.com/framework/docs/providers/aws/guide/services#version-pinning

garethmcc avatar Sep 19 '24 11:09 garethmcc

I did find a way, not sure if that's what you link points to: npm install -g [email protected]. It turns out my issue was related to the lambda instance memory limit and I was getting OOM. Strangely, downgrading rust by one version seems to have fixed it. So I take back what I said in this thread. :)

Long day of debugging...

thrichardson-twist avatar Sep 19 '24 19:09 thrichardson-twist