-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathserverless-dev.yml
66 lines (62 loc) · 2.16 KB
/
serverless-dev.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
org: frontendcafe
app: server
service: server
frameworkVersion: "3"
useDotenv: true
provider:
name: aws
environment:
CALOMENTOR_MAIL: ${file(./config.dev.json):CALOMENTOR_MAIL}
CALOMENTOR_MAIL_CLIENT_ID: ${file(./config.dev.json):CALOMENTOR_MAIL_CLIENT_ID}
CALOMENTOR_MAIL_CLIENT_SECRET: ${file(./config.dev.json):CALOMENTOR_MAIL_CLIENT_SECRET}
CALOMENTOR_MAIL_REFRESH_TOKEN: ${file(./config.dev.json):CALOMENTOR_MAIL_REFRESH_TOKEN}
CALOMENTOR_MAIL_ACCESS_TOKEN: ${file(./config.dev.json):CALOMENTOR_MAIL_ACCESS_TOKEN}
BASE_URL: ${file(./config.dev.json):BASE_URL}
BASE_FRONT_URL: ${file(./config.dev.json):BASE_FRONT_URL}
BASE_BOT_URL: ${file(./config.dev.json):BASE_BOT_URL}
MENTORISHIP_NOTIFICATIONS_CHANNEL_ID: ${file(./config.dev.json):MENTORISHIP_NOTIFICATIONS_CHANNEL_ID}
MENTEE_ROLE_ID: ${file(./config.dev.json):MENTEE_ROLE_ID}
API_KEY_PHRASE: ${file(./config.dev.json):API_KEY_PHRASE}
JWT_KEY: ${file(./config.dev.json):JWT_KEY}
API_KEY: ${file(./config.dev.json):API_KEY}
STATE_MACHINE_ARN: ${file(./config.dev.json):STATE_MACHINE_ARN}
STAGE: ${opt:stage, self:provider.stage}
SANITY_PROJECT_ID: ${file(./config.dev.json):SANITY_PROJECT_ID}
runtime: nodejs14.x
region: sa-east-1
stackName: calomentor
apiName: calomentor-api
apiGateway:
apiKeys:
- ${file(./config.dev.json):API_KEY_PHRASE}
stage: dev
iam:
role:
statements:
- Effect: Allow
Action:
- dynamodb:*
- s3:*
- ses:*
- states:StartExecution
Resource: "*"
plugins:
- serverless-plugin-typescript
- serverless-offline
- serverless-step-functions
functions:
- ${file(definitions/timeslots.yml)}
- ${file(definitions/users.yml)}
- ${file(definitions/metrics.yml)}
- ${file(definitions/warnings.yml)}
- ${file(definitions/mentorships-api.yml)}
- ${file(definitions/mentorships-state-machine.yml)}
- ${file(definitions/matebot.yml)}
- ${file(definitions/feedback.yml)}
stepFunctions:
${file(definitions/create-mentorship-step-function.yml)}
resources:
- ${file(definitions/db-tables.yml)}
custom:
serverless-offline:
httpPort: 3001