-
Notifications
You must be signed in to change notification settings - Fork 10
/
variables.tf
59 lines (52 loc) · 1.97 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
variable "action_targets" {
description = "Schema list of SecurityHub action targets."
type = list(object({
name = string
description = string
identifer = string
}))
default = []
}
variable "auto_enable_controls" {
description = "Boolean that enables the security standards that Security Hub has designated as automatically enabled including: `AWS Foundational Security Best Practices v1.0.0` and `CIS AWS Foundations Benchmark v1.2.0`"
type = bool
default = true
}
variable "control_finding_generator" {
description = "Manages whether the account reports consolidated control findings, or generates separate findings for every enabled standard."
type = string
default = null
validation {
condition = (
var.control_finding_generator != null ?
contains(["SECURITY_CONTROL", "STANDARDS_CONTROL"], var.control_finding_generator) :
true
)
error_message = "control_finding_generator must be one of: SECURITY_CONTROL, STANDARDS_CONTROL, null"
}
}
variable "enable_default_standards" {
description = "Boolean that automatically enables new controls when they are added to standards that are enabled"
type = bool
default = true
}
variable "product_subscription_arns" {
description = "List of product arns to subscribe to. See https://www.terraform.io/docs/providers/aws/r/securityhub_product_subscription.html"
type = list(string)
default = []
}
variable "standard_subscription_arns" {
description = "List of standard arns to subscribe to. See https://www.terraform.io/docs/providers/aws/r/securityhub_standards_subscription.html"
type = list(string)
default = []
}
variable "standards_controls" {
description = "List of Security Hub standards to enable or disable in current region."
type = list(object({
name = string
standards_control_arn = string
control_status = string
disabled_reason = string
}))
default = []
}