-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Expand file tree
/
Copy pathserverless.yml
More file actions
53 lines (50 loc) · 1.08 KB
/
serverless.yml
File metadata and controls
53 lines (50 loc) · 1.08 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
service: aws-node-eventbridge
provider:
name: aws
runtime: nodejs14.x
iamRoleStatements:
- Effect: "Allow"
Action:
- "events:PutEvents"
Resource: "*"
functions:
alice:
handler: handler.alice
events:
- httpApi:
method: POST
path: /alice
bob:
handler: handler.bob
events:
- eventBridge:
eventBus: custom-decouple-events
pattern:
source:
- alice.trigger
detail-type:
- Triggering_Bob
detail:
name:
- "Message"
eve:
handler: handler.eve
events:
- eventBridge:
pattern:
source:
- aws.apigateway
- aws.cloudtrail
- aws.cloudwatch
- aws.dynamodb
- aws.ec2
- aws.events
- aws.iam
- aws.kms
- aws.logs
- aws.secretsmanager
dave:
handler: handler.dave
events:
- eventBridge:
schedule: rate(10 minutes)