Deployable hello function behind api gateway

This commit is contained in:
Ben Ramey
2018-09-18 06:50:21 -05:00
parent ba58b1858d
commit 5437fe88b0
2 changed files with 9 additions and 15 deletions

View File

@@ -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