-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
44 lines (37 loc) · 869 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
42
43
service: mailgunEventsService
provider:
name: aws
runtime: nodejs12.x
region: us-west-1
functions:
processMailgunEvent:
handler: dist/index.handler
dependsOn:
- MailGunEvent
- mailgunEventsTable
plugins:
- serverless-plugin-typescript
- serverless-offline
resources:
Resources:
MailGunEvent:
Type: AWS::SNS::Topic
Properties:
DisplayName: MailGun
TopicName: mailgun-event
mailgunEventsTable:
Type: "AWS::DynamoDB::Table"
Properties:
TableName: mailgunEventsTable
AttributeDefinitions:
- AttributeName: id
AttributeType: S
KeySchema:
- AttributeName: id
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1
package:
exclude:
- node_modules/**