-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
41 lines (38 loc) · 843 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
40
41
service: aws-eventbridge-example
frameworkVersion: '3'
provider:
name: aws
runtime: nodejs14.x
region: eu-west-2
stage: dev
plugins:
- serverless-offline
functions:
getVersion:
handler: src/handlers/index.getVersion
events:
- http:
method: GET
path: /
orderCreate:
handler: src/handlers/index.orderCreate
events:
- http:
method: POST
path: /orders
invoiceCreate:
handler: src/handlers/index.invoiceCreate
events:
- eventBridge:
eventBus: custom-events
pattern:
source:
- custom.orderCreate
dispatchCreate:
handler: src/handlers/index.dispatchCreate
events:
- eventBridge:
eventBus: custom-events
pattern:
source:
- custom.orderCreate