-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
56 lines (46 loc) · 1.02 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
service:
name: portal-rest-api
plugins:
- serverless-plugin-typescript
- serverless-offline
- serverless-domain-manager
provider:
name: aws
runtime: nodejs6.10
stage: ${opt:stage, 'dev'}
memorySize: 3008
timeout: 300
profile: sajeeva
environment: ${file(./.config/env.${self:provider.stage}.json)}
iamRoleStatements:
- Effect: 'Allow'
Action:
- 'ses:SendEmail'
Resource:
${self:provider.environment.sesArn}
- Effect: 'Allow'
Action:
- 'cognito-identity:*'
- 'cognito-idp:*'
Resource:
${self:provider.environment.userPool}
package:
include:
- templates/**
# exclude:
# - node_modules/**/*
functions:
helloUser:
handler: users-service/handler.helloUser
events:
- http:
method: get
path: users/helloUser
cors: true
helloLeads:
handler: leads-service/handler.helloLeads
events:
- http:
method: get
path: leads/helloLeads
cors: true