-
Notifications
You must be signed in to change notification settings - Fork 2
/
serverless.yml
85 lines (81 loc) · 1.73 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
service: guardduty-notifications
provider:
name: aws
runtime: go1.x
region: ap-southeast-2
environment:
OAUTH_ACCESS_TOKEN: ${ssm:guardBotOAuthAccessToken}
CHANNEL: ${ssm:guardChannel}
package:
exclude:
- ./**
include:
- ./bin/**
functions:
finding-reporter:
handler: bin/finding-reporter
events:
- cloudwatchEvent:
name: "guard-duty-findings"
enabled: true
event:
source:
- "aws.guardduty"
detail-type:
- "GuardDuty Finding"
detail:
severity:
- 4
- 4.0
- 4.1
- 4.2
- 4.3
- 4.4
- 4.5
- 4.6
- 4.7
- 4.8
- 4.9
- 5.0
- 5.1
- 5.2
- 5.3
- 5.4
- 5.5
- 5.6
- 5.7
- 5.8
- 5.9
- 6
- 6.0
- 6.1
- 6.2
- 6.3
- 6.4
- 6.5
- 6.6
- 6.7
- 6.8
- 6.9
- 7
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- 7.5
- 7.6
- 7.7
- 7.8
- 7.9
- 8
- 8.0
- 8.1
- 8.2
- 8.3
- 8.4
- 8.5
- 8.6
- 8.7
- 8.8
- 8.9