-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yaml
43 lines (39 loc) · 1.14 KB
/
template.yaml
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
job-sentinel
Sample SAM Template for job-sentinel
Globals:
Function:
Timeout: 30
Resources:
CheckJobInactivityFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: project/
Handler: app.lambdaHandler
Runtime: nodejs20.x
Architectures:
- x86_64
Environment:
Variables:
SEQUENCER_ADDRESS: "0x238b4E35dAed6100C6162fAE4510261f88996EC9"
RPC_PROVIDER: "https://rpc.ankr.com/eth"
DISCORD_WEBHOOK_URL: "https://discord.com/api/webhooks/1271111101227991060/IXZasRFdYP1cmg4KFM74AMtjdZuTa54zr0TRbzDUnbwhS_ATyXmcK-BGamo63EdMNYJN"
Events:
ScheduledEvent:
Type: Schedule
Properties:
Schedule: rate(15 seconds)
Metadata:
BuildMethod: esbuild
BuildProperties:
Minify: true
Target: "es2020"
Sourcemap: true
EntryPoints:
- app.ts
Outputs:
CheckJobInactivityFunctionArn:
Description: "Check Job Inactivity Lambda Function ARN"
Value: !GetAtt CheckJobInactivityFunction.Arn