Skip to content

Commit

Permalink
Marking severity a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
adenot committed May 3, 2021
1 parent 77e36e4 commit f4fcc9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions _variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ variable "subscription_foundational" {
description = "Enables AWS Foundational Security Best Practices subscription"
}

variable "severity_list" {
type = list
default = ["HIGH","CRITICAL"]
}

variable "members" {
type = list
default = []
Expand Down
6 changes: 1 addition & 5 deletions eventbridge.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ resource "aws_cloudwatch_event_rule" "securityhub" {
"detail": {
"findings": {
"Severity": {
"Label": [
"MEDIUM",
"HIGH",
"CRITICAL"
]
"Label": ${jsonencode(var.severity_list)}
},
"Workflow": {
"Status": [
Expand Down

0 comments on commit f4fcc9b

Please sign in to comment.