forked from fedemzcor/terraform-aws-waf-owasp-top-10-rules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
67 lines (55 loc) · 3.11 KB
/
variables.tf
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
variable "product_domain" {
type = string
description = "The name of the product domain these resources belong to."
}
variable "service_name" {
type = string
description = "The name of the service these resources belong to."
}
variable "environment" {
type = string
description = "The environment of these resources belong to."
}
variable "description" {
type = string
description = "The description of these resources."
}
variable "target_scope" {
type = string
description = "Valid values are `global` and `regional`. If `global`, means resources created will be for global targets such as Amazon CloudFront distribution. For regional targets like ALBs and API Gateway stages, set to `regional`"
}
variable "create_rule_group" {
type = string
description = "All rules can be grouped into a Rule Group. Unfortunately, AWS WAF Rule Group limit per region is only 3. By setting the value to `false` will not create the rule group. Default to `true`."
default = "true"
}
variable "max_expected_uri_size" {
type = string
description = "Maximum number of bytes allowed in the URI component of the HTTP request. Generally the maximum possible value is determined by the server operating system (maps to file system paths), the web server software, or other middleware components. Choose a value that accomodates the largest URI segment you use in practice in your web application."
default = "512"
}
variable "max_expected_query_string_size" {
type = string
description = "Maximum number of bytes allowed in the query string component of the HTTP request. Normally the of query string parameters following the ? in a URL is much larger than the URI , but still bounded by the of the parameters your web application uses and their values."
default = "1024"
}
variable "max_expected_body_size" {
type = string
description = "Maximum number of bytes allowed in the body of the request. If you do not plan to allow large uploads, set it to the largest payload value that makes sense for your web application. Accepting unnecessarily large values can cause performance issues, if large payloads are used as an attack vector against your web application."
default = "4096"
}
variable "max_expected_cookie_size" {
type = string
description = "Maximum number of bytes allowed in the cookie header. The maximum size should be less than 4096, the size is determined by the amount of information your web application stores in cookies. If you only pass a session token via cookies, set the size to no larger than the serialized size of the session token and cookie metadata."
default = "4093"
}
variable "csrf_expected_header" {
type = string
description = "The custom HTTP request header, where the CSRF token value is expected to be encountered"
default = "x-csrf-token"
}
variable "csrf_expected_size" {
type = string
description = "The size in bytes of the CSRF token value. For example if it's a canonically formatted UUIDv4 value the expected size would be 36 bytes/ASCII characters."
default = "36"
}