Skip to content

Instantly share code, notes, and snippets.

@jorgt
Created September 27, 2017 00:18
Show Gist options
  • Save jorgt/27a1e21579e4b986f2e15034285e8cde to your computer and use it in GitHub Desktop.
Save jorgt/27a1e21579e4b986f2e15034285e8cde to your computer and use it in GitHub Desktop.
hana serverless
service: sls-hana
custom:
stage: "${opt:stage, self:provider.stage}"
provider:
name: google
runtime: nodejs
project: hana-express-178422
# the path to the credentials file needs to be absolute
credentials: ~/.gcloud/hana-express-f0818cd356b6.json
stage: dev
plugins:
- serverless-google-cloudfunctions
# needs more granular excluding in production as only the serverless provider npm
# package should be excluded (and not the whole node_modules directory)
package:
exclude:
- node_modules/**
- '!node_modules/hdb/**'
- '!node_modules/iconv-lite/**'
- app/**
- .gitignore
- .git/**
- secrets.yml
functions:
memory:
handler: memory
events:
- http: path
storage:
handler: storage
events:
- http: path
memory_by_component:
handler: memory_by_component
events:
- http: path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment