Hello,
In my serverless.yml template I am trying to create a lambda function by directly referring the ‘js’ file as shown below. This is not working as expected due to error ‘Configuration error at ‘functions.function1.handler’: must be string’ . Requesting help to find out what is the error here.
service: proj3
configValidationMode: error
frameworkVersion: ‘3’
provider:
name: aws
runtime: nodejs12.x
stage: dev
package:
patterns:
- ‘!node_modules/’
- '!src/’
- ‘src/func1/handler.js’
functions:
function1:
name: function1
description: This is function 1
handler: “${file(src/func1/handler.js):func1}”