-
Notifications
You must be signed in to change notification settings - Fork 2
/
serverless.yml
37 lines (30 loc) · 1.18 KB
/
serverless.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
service: aws-lambda-opencage-geocoder
# You can pin your service to only deploy with a specific Serverless version
# Check out our docs for more details
# frameworkVersion: "=X.X.X"
provider:
name: aws
runtime: nodejs6.10
# you can overwrite defaults here
# stage: dev
# region: us-east-1
plugins:
- serverless-env-generator
- serverless-offline # serverless-offline needs to be last in the list
# Plugin config goes into custom:
custom:
envFiles: #YAML files used to create .env file
- environment.yml
functions:
# hello:
# handler: handler.hello
# events: # The Events that trigger this Function
# - http: # This creates an API Gateway HTTP endpoint which can be used to trigger this function. Learn more in "events/apigateway"
# path: hello # Path for this endpoint
# method: get # HTTP method for this endpoint
geocode:
handler: opencage.geocode
events: # The Events that trigger this Function
- http: # This creates an API Gateway HTTP endpoint which can be used to trigger this function. Learn more in "events/apigateway"
path: geocode # Path for this endpoint
method: get # HTTP method for this endpoint