Hello! I am setting up a quick test lambda function behind an API gateway and in local (haven’t even deployed it yet) I keep getting this warning when I try to run serverless offline
Serverless: Deprecation warning: Serverless constructor expects resolved service configuration path to be provided via "config.configurationPath".
Starting from next major Serverless will no longer auto resolve that path internally.
More Info: https://www.serverless.com/framework/docs/deprecations/#MISSING_SERVICE_CONFIGURATION_PATH
I am not quite sure I understand what I am supposed to do? I can’t find documentation explicitly spelling out what the configuration path is supposed to be or where I should be setting it. Any pointers highly welcome!
ta
FYI - my serverless.yml looks like this:
service: servicename
org: myorg
provider:
name: aws
runtime: nodejs12.x
stage: ${opt:stage, 'local'}
region: eu-west-1
endpointType: REGIONAL
environment:
ENV: ${self:provider.stage}
tracing:
lambda: true
apiGateway: true
stackTags:
Name: ${self:custom.tag.name}
Service: ${self:custom.tag.service}
Env: ${self:custom.tag.env}
Role: api
deploymentBucket:
name: ${file(./vars/${self:custom.tag.env}.json):deploymentBucket}
plugins:
- serverless-webpack
- serverless-offline
custom:
tag:
service: ${self:service}
env: ${self:provider.stage}
name: ${self:custom.tag.env}-${self:service}-api
name: ${self:custom.tag.name}
rolename: ${self:custom.name}-role
functions:
hello:
handler: functions/handler.hello
events:
- http:
method: post
path: hello
integration: lambda
request:
passThrough: NEVER
template:
application/json: ${file(serverless/apiGateway/hello_payload_schema.json)}
application/x-www-form-urlencoded: null