-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
34 lines (29 loc) · 966 Bytes
/
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
service: serverless-gmail-function # NOTE: Don't put the word "google" in here
provider:
name: google
stage: dev
runtime: nodejs8
region: us-central1
project: teak-banner-234513
# The GCF credentials can be a little tricky to set up. Luckily we've documented this for you here:
# https://serverless.com/framework/docs/providers/google/guide/credentials/
#
# the path to the credentials file needs to be absolute
credentials: ${file(./environment.yml):dev.CREDENTIALS}
environment:
CLIENT_ID: ${file(./environment.yml):dev.CLIENT_ID}
CLIENT_SECRET: ${file(./environment.yml):dev.CLIENT_SECRET}
REFRESH_TOKEN: ${file(./environment.yml):dev.REFRESH_TOKEN}
GMAIL_ACCOUNT: ${file(./environment.yml):dev.GMAIL_ACCOUNT}
plugins:
- serverless-google-cloudfunctions
package:
exclude:
- node_modules/**
- .gitignore
- .git/**
functions:
emailSenderFunction:
handler: emailSender
events:
- http: email