-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
39 lines (32 loc) · 934 Bytes
/
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
service: billing-notifier
configValidationMode: error
provider:
name: aws
runtime: nodejs16.x
region: us-west-2
iam:
role: 'arn-of-your-role-here'
stage: ${opt:stage, 'billing'}
timeout: 60
versionFunctions: false
deploymentBucket:
name: your-serverless-state-bucket-here
serverSideEncryption: AES256
environment:
AWS_NODEJS_CONNECTION_REUSE_ENABLED: 1
AWS_EMF_ENVIRONMENT: Lambda
SLACK_TOKEN: 'SLACK_TOKEN_HERE'
SLACK_CHANNEL: '#slack-channel-here'
functions:
billing-notifier:
handler: .build/billing-notifier/main.handler
events:
# 7am every monday = 7pm sunday UTC
- schedule: cron(0 19 ? * SUN *)
# 3pm every friday = 3am friday UTC
- schedule: cron(0 3 ? * FRI *)
# 7am on the 5th day of the month = 7pm on the 4th day of the month
- schedule: cron(0 19 4 * ? *)
plugins:
- serverless-plugin-monorepo
- serverless-offline