-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
template.yaml
28 lines (28 loc) · 938 Bytes
/
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
AWSTemplateFormatVersion: "2010-09-09"
Description: "HaveIBeenPwned Security Hub Finding Notifier"
Transform: "AWS::Serverless-2016-10-31"
Resources:
pwnedLambda:
Type: "AWS::Serverless::Function"
Properties:
Handler: "index.handler"
CodeUri: "./src"
Runtime: "python3.7"
MemorySize: 128
Timeout: 900
Policies:
- Version: "2012-10-17"
Statement:
- Effect: "Allow"
Action:
- "securityhub:BatchImportFindings"
Resource: "*"
Environment:
Variables:
REGION: !Ref "AWS::Region"
ACCOUNTID: !Ref "AWS::AccountId"
Events:
Rule:
Type: "Schedule"
Properties:
Schedule: "rate(24 hours)"