-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
37 lines (35 loc) · 1.16 KB
/
serverless.yml
File metadata and controls
37 lines (35 loc) · 1.16 KB
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
# "org" ensures this Service is used with the correct Serverless Framework Access Key.
org: csimonmeunier
# "app" enables Serverless Framework Dashboard features and sharing them with other Services.
app: max-connect
# "service" is the name of this project. This will also be added to your AWS resource names.
service: max-connect-jobs
provider:
name: aws
runtime: nodejs20.x
region: eu-west-1
timeout: 480
functions:
updateJourneys:
handler: jobs/journeys.update
events:
- schedule: cron(50 4 * * ? *) # Every day at 4:50 AM UTC
environment:
MONGODB_URI: ${param:MONGODB_URI}
MONGODB_DB: ${param:MONGODB_DB}
updateTrips:
handler: jobs/trips.update
events:
- schedule: cron(0 5 * * ? *) # Every day at 5:00 AM UTC
environment:
MONGODB_URI: ${param:MONGODB_URI}
MONGODB_DB: ${param:MONGODB_DB}
handleAlerts:
handler: jobs/alerts.handle
events:
- schedule: cron(0 6 * * ? *) # Every day at 6:00 AM UTC
environment:
MONGODB_URI: ${param:MONGODB_URI}
MONGODB_DB: ${param:MONGODB_DB}
MAILJET_API_KEY: ${param:MAILJET_API_KEY}
MAILJET_API_SECRET: ${param:MAILJET_API_SECRET}