aws-lambda icon indicating copy to clipboard operation
aws-lambda copied to clipboard

Cannot specify a runtime

Open ryangrimm opened this issue 4 years ago • 1 comments

In the utils.js file there are a few places that use the input.runtime, with the exception of right here:

https://github.com/serverless-components/aws-lambda/blob/d9620ee93723a59430603e4fba438082ec2d58b6/src/utils.js#L58

Am I correct in assuming that if that line were changed to runtime: inputs.runtime || 'nodejs12.x' we could then specify any runtime we desired? That just seems too easy of a fix.

ryangrimm avatar Nov 24 '20 06:11 ryangrimm

@eahefnawy This issue is still a thing. Lambda deployed via this serverless component can only be node 12.x and as stated by the OP it's an easy fix. Can you spare some time reviewing the PR i've opened ?

MattiaPette avatar Jun 25 '21 07:06 MattiaPette