-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
42 lines (37 loc) · 1.54 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
# "org" ensures this Service is used with the correct Serverless Framework Access Key.
org: scooter
# "app" enables Serverless Framework Dashboard features and sharing them with other Services.
app: osouji-reminder-bunkaisan
# "service" is the name of this project. This will also be added to your AWS resource names.
service: osouji-reminder
provider:
name: aws
runtime: python3.12
region: ap-northeast-1
profile: scooter_personal
stage: dev
functions:
weeklyCleaningDuty:
handler: lambdas/weekly_cleaning_duty.run
environment:
LINE_NOTIFY_CLIENT_TOKEN: ${ssm:/aws/reference/secretsmanager/${sls:stage}/line-notify-client-token}
layers:
- arn:aws:lambda:ap-northeast-1:770693421928:layer:Klayers-p312-requests:7
events:
- schedule: cron(00 12 ? * 1 *) # Sundays 9:00 PM Japan time
dailyTrashDuty:
handler: lambdas/daily_trash_duty.run
environment:
LINE_NOTIFY_CLIENT_TOKEN: ${ssm:/aws/reference/secretsmanager/${sls:stage}/line-notify-client-token}
layers:
- arn:aws:lambda:ap-northeast-1:770693421928:layer:Klayers-p312-requests:7
events:
- schedule: cron(00 12 ? * 1-5 *) # Sun to Thu every night 9:00 PM Japan time
monthlyRentPayment:
handler: lambdas/monthly_rent_payment.run
environment:
LINE_NOTIFY_CLIENT_TOKEN: ${ssm:/aws/reference/secretsmanager/${sls:stage}/line-notify-client-token-rent-reminder}
layers:
- arn:aws:lambda:ap-northeast-1:770693421928:layer:Klayers-p312-requests:7
events:
- schedule: cron(00 3 24 * ? *) # 24th of the month noon