Skip to content

Commit

Permalink
Defaults control_finding_generator to null to allow org to manage set…
Browse files Browse the repository at this point in the history
…ting
  • Loading branch information
lorengordon committed Aug 29, 2023
1 parent da889a2 commit 6b64c32
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion modules/account/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ variable "auto_enable_controls" {
variable "control_finding_generator" {
description = "Manages whether the account reports consolidated control findings, or generates separate findings for every enabled standard."
type = string
default = "SECURITY_CONTROL"
default = null

validation {
condition = contains(["SECURITY_CONTROL", "STANDARDS_CONTROL", null], var.control_finding_generator)
error_message = "control_finding_generator must be one of: SECURITY_CONTROL, STANDARDS_CONTROL, null"
}
}

variable "enable_default_standards" {
Expand Down
7 changes: 6 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ variable "auto_enable_controls" {
variable "control_finding_generator" {
description = "Manages whether the account reports consolidated control findings, or generates separate findings for every enabled standard."
type = string
default = "SECURITY_CONTROL"
default = null

validation {
condition = contains(["SECURITY_CONTROL", "STANDARDS_CONTROL", null], var.control_finding_generator)
error_message = "control_finding_generator must be one of: SECURITY_CONTROL, STANDARDS_CONTROL, null"
}
}

variable "enable_default_standards" {
Expand Down

0 comments on commit 6b64c32

Please sign in to comment.