generated from DataStax-Examples/datastax-examples-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
41 lines (37 loc) · 1.16 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
38
39
40
41
service: gcp-node-cassandra-http-api
provider:
name: google
stage: dev
runtime: nodejs8
region: us-central1
project: <change-to-project-id>
# See the document below for setting up the credentials for GCP and Google Cloud Functions:
# https://serverless.com/framework/docs/providers/google/guide/credentials/
#
# the path to the credentials file needs to be absolute
credentials: <change-to-path-to-keyfile-json>
environment:
CONTACT_POINTS: <change-to-public-ip>
LOCAL_DC: <change-to-dc-name>
plugins:
- serverless-google-cloudfunctions
functions:
createCatalog:
handler: createCatalog
events:
# it appears that the path here does not take effect and the endpoint is instead /createCatalog
- http: catalog/create
addItem:
handler: addItem
events:
# it appears that the path here does not take effect and the endpoint is instead /addItem
- http: catalog/add
getItem:
handler: getItem
events:
# it appears that the path here does not take effect and the endpoint is instead /getItem/{id}
- http: catalog/get/{id}
package:
include:
- index.js
excludeDevDependencies: false