I have several lambda functions that I’m trying to consolidate into a single serverless project. Some of the functions are written in python, and others are written in nodejs. Is there a way to define the runtime on a per-function basis to override the runtime defined in the provider section of the yaml? Below is what I’ve tried, but the resulting cloudformaiton template still uses “nodejs4.3”.
Thanks!
EXAMPLE:
service: MultiRuntimeService
provider:
name: aws
runtime: nodejs4.3
functions:
jshello:
handler: jshandler.hello
Runtime: nodejs4.3
pyhello:
handler: pyhandler.hello
Runtime: python2.7