forked from willfarrell/terraform-waf-module
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
113 lines (91 loc) · 2.83 KB
/
variables.tf
File metadata and controls
113 lines (91 loc) · 2.83 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
variable "name" {
description = "unique prefix for names. alpha numeric only. ie uatAppname"
type = string
default = ""
}
variable "scope" {
type = string // CLOUDFRONT, REGIONAL
}
# Note: defaultAction variable removed - was unused (see main.tf line 15 TODO comment)
variable "requestThreshold" {
description = "If you chose yes for the Activate HTTP Flood Protection parameter, enter the maximum acceptable requests per FIVE-minute period per IP address. Please note that AWS WAF rate based rule requires values greather than 2,000 (if you chose Lambda/Athena log parser options, you can use any value greather than zero). If you chose to deactivate this protection, ignore this parameter. Default to `2000`, min allowed: `2000`"
type = number
default = 2000
}
variable "errorThreshold" {
description = "If you chose yes for the Activate Scanners & Probes Protection parameter, enter the maximum acceptable bad requests per minute per IP. If you chose to deactivate this protection protection, ignore this parameter."
type = number
default = 50
}
variable "blockPeriod" {
description = "If you chose yes for the Activate Scanners & Probes Protection or HTTP Flood Lambda/Athena log parser parameters, enter the period (in minutes) to block applicable IP addresses. If you chose to deactivate log parsing, ignore this parameter."
type = number
default = 240
}
variable "excluded_rules" {
type = list(string)
default = []
}
//variable "rules" {
// type = list(map)
// default = []
//}
variable "uploadToS3Activated" {
type = bool
default = false
}
variable "uploadToS3Path" {
type = string
description = "path that upload will take place"
default = ""
}
variable "uploadToS3Method" {
type = string
description = "method that upload will use"
default = "PUT"
}
variable "whitelistActivated" {
type = bool
default = false
}
variable "blacklistProtectionActivated" {
type = bool
default = true
}
variable "httpFloodProtectionLogParserActivated" {
type = bool
default = true
}
variable "scannersProbesProtectionActivated" {
type = bool
default = true
}
variable "reputationListsProtectionActivated" {
type = bool
default = true
}
variable "badBotProtectionActivated" {
type = bool
default = true
}
# Note: SqlInjectionProtectionSensitivityLevelParam removed - re-add when implementing
# sensitivity_level in main.tf sqli_match_statement blocks (currently commented out)
variable "logging_bucket" {
description = "S3 bucket for WAF logs"
type = string
default = ""
}
variable "dead_letter_arn" {
type = string
}
variable "dead_letter_policy_arn" {
type = string
}
variable "kms_master_key_id" {
type = string
default = null
}
variable "kms_master_key_arn" {
type = string
default = null
}