Deployable hello function behind api gateway
This commit is contained in:
@@ -20,6 +20,7 @@ service: eg-api # NOTE: update this with your service name
|
||||
provider:
|
||||
name: aws
|
||||
runtime: nodejs8.10
|
||||
region: us-east-2
|
||||
|
||||
# you can overwrite defaults here
|
||||
# stage: dev
|
||||
@@ -56,7 +57,11 @@ provider:
|
||||
|
||||
functions:
|
||||
hello:
|
||||
handler: handler.hello
|
||||
handler: handlers/hello/get.hello
|
||||
events:
|
||||
- http:
|
||||
path: hello
|
||||
method: get
|
||||
|
||||
# The following are a few example events you can configure
|
||||
# NOTE: Please make sure to change your handler code to work with those events
|
||||
@@ -102,3 +107,6 @@ functions:
|
||||
# NewOutput:
|
||||
# Description: "Description for the output"
|
||||
# Value: "Some output value"
|
||||
|
||||
plugins:
|
||||
- serverless-offline
|
||||
Reference in New Issue
Block a user