Skip to content

Commit bd52042

Browse files
authored
Merge branch 'master' into feat/security-group-module
2 parents 5b6d057 + 8952440 commit bd52042

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

main.tf

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,12 @@ resource "aws_msk_cluster" "default" {
142142
}
143143
}
144144
dynamic "sasl" {
145-
for_each = var.client_sasl_scram_enabled ? [1] : []
145+
#bridgecrew:skip=BC_AWS_LOGGING_18:Skipping `Amazon MSK cluster logging is not enabled` check since it can be enabled with cloudwatch_logs_enabled = true
146+
#bridgecrew:skip=BC_AWS_GENERAL_32:Skipping `MSK cluster encryption at rest and in transit is not enabled` check since it can be enabled with encryption_in_cluster = true
147+
for_each = var.client_sasl_scram_enabled || var.client_sasl_iam_enabled ? [1] : []
146148
content {
147149
scram = var.client_sasl_scram_enabled
148-
}
149-
}
150-
dynamic "sasl" {
151-
for_each = var.client_sasl_iam_enabled ? [1] : []
152-
content {
153-
iam = var.client_sasl_iam_enabled
150+
iam = var.client_sasl_iam_enabled
154151
}
155152
}
156153
}

0 commit comments

Comments
 (0)