-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.example.yml
More file actions
56 lines (51 loc) · 1.42 KB
/
serverless.example.yml
File metadata and controls
56 lines (51 loc) · 1.42 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Welcome to Serverless!
# This file is the main config file for your service.
# For full config options, check the docs:
# docs.serverless.com
# Happy Coding!
service: neighbourly
tenant: YOUR_TENANT_NAME
app: YOUR_APP_NAME
provider:
name: aws
runtime: nodejs6.10
stage: prod
region: us-east-1
memorySize: 1024 # optional, in MB, default is 1024
timeout: 30 # optional, in seconds, default is 6
plugins:
- serverless-offline
# you can define service wide environment variables here
# environment:
# variable1: value1
functions:
getForBounds:
handler: handler.getForBounds
memorySize: 1024 # optional, in MB, default is 1024
timeout: 30 # optional, in seconds, default is 6
# Define function environment variables here
environment:
DATABASE_URL: YOUR_DATABASE_URL
GOOGLE_MAPS_KEY: YOUR_GOOGLE_MAPS_KEY
events:
- http:
path: territories/bounds
method: get
cors: true
generateMap:
handler: handler.generateMap
memorySize: 1024 # optional, in MB, default is 1024
timeout: 30 # optional, in seconds, default is 6
# Define function environment variables here
environment:
DATABASE_URL: YOUR_DATABASE_URL
GOOGLE_MAPS_KEY: YOUR_GOOGLE_MAPS_KEY
events:
- http:
path: map
method: get
cors: true
request:
parameters:
querystrings:
slug: true