-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yaml
38 lines (34 loc) · 1.01 KB
/
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
29
30
31
32
33
34
35
36
37
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
ddos_hangman
An AWS Lambda function to drop the inbound requests from attackers on a network ACL layer.
Globals:
Function:
Timeout: 30
Resources:
DDoSHangmanExecuteFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: execute/
Handler: execute
FunctionName: ddos-hangman-execute
Runtime: go1.x
Tracing: PassThrough
MemorySize: 128
Timeout: 30
Role: arn:aws:iam::${your-account}:role/${your-role-name}
Events:
CatchAll:
Type: DynamoDB
Properties:
Stream: arn:aws:dynamodb:${your-region}:${your-account}:table/${your-table-name}/stream/${your-stream}
StartingPosition: TRIM_HORIZON
BatchSize: 100
Enabled: true
Environment:
Variables:
REGION: edit-here
BEGIN_RULE_NUMBER: edit-here
IGNORE_ERROR: edit-here
TABLE_NAME: edit-here