-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
91 lines (86 loc) · 2.3 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
service: oauth
custom:
staging:
versionFunctions: false
production:
versionFunctions: true
provider:
name: aws
runtime: nodejs6.10
cfLogs: true
memorySize: 1024
timeout: 10
role: arn:aws:iam::371305127297:role/lambda_exec_role
region: us-west-2
vpc:
securityGroupIds:
- sg-f82fb69f
subnetIds:
- subnet-8b8459fd
- subnet-b4e65dd0
- subnet-32ad4f6a
versionFunctions: ${self:custom:${opt:stage}:versionFunctions}
plugins:
# - serverless-plugin-include-dependencies
# - serverless-enable-api-logs
# - serverless-offline
# - serverless-webpack
- serverless-prune-plugin
package:
exclude:
#- node_modules/** # add this yourself
#- '!node_modules/@types/**' # add this yourself
- configuration/**
- '!configuration/secrets/**'
- db/**
- doc/**
- legacy/**
- src/**
- mocks/**
- test/**
- node_modules_keep/**
- node_modules/**/*.pl
- node_modules/**/*.c
- node_modules/**/*.cpp
- node_modules/**/*.h
- node_modules/**/Makefile
- node_modules/**/tests/**
- node_modules/**/*.ts
- node_modules/serverless*/***
functions:
oauth-redirect:
name: ${opt:stage}-oauth-redirect
environment:
NODE_ENV: ${opt:stage}
handler: release/lambda-express.handler
role: arn:aws:iam::371305127297:role/lambda_basic_vpc_execution
events:
- http:
path: /{service}/redirect
method: get
cors: true
role: arn:aws:iam::371305127297:role/apigateway-logs-us-west-2
oauth-token:
name: ${opt:stage}-oauth-token
environment:
NODE_ENV: ${opt:stage}
handler: release/lambda-express.handler
role: arn:aws:iam::371305127297:role/lambda_basic_vpc_execution
events:
- http:
path: /{service}/token
method: get
cors: true
role: arn:aws:iam::371305127297:role/apigateway-logs-us-west-2
# oauth-token:
# name: ${opt:stage}-oauth-token
# environment:
# NODE_ENV: ${opt:stage}
# handler: release/oauth-token.handler
# role: arn:aws:iam::371305127297:role/lambda_basic_vpc_execution
# events:
# - http:
# path: /token
# method: post
# cors: true
# role: arn:aws:iam::371305127297:role/apigateway-logs-us-west-2