Skip to content

Commit b7dd809

Browse files
committed
CCM-12770: Splunk log sending mandatory
1 parent 2b40654 commit b7dd809

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

infrastructure/modules/lambda/cloudwatch_log_subscription_filter_firehose.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
resource "aws_cloudwatch_log_subscription_filter" "firehose" {
2-
count = var.send_to_firehose ? 1 : 0 # Keeping this optional for now as don't want to break all lambdas using this, can make this mandatory later
32
name = trim(replace(aws_cloudwatch_log_group.main.name, "/", "-"), "-")
43
log_group_name = aws_cloudwatch_log_group.main.name
54
filter_pattern = var.filter_pattern

infrastructure/modules/lambda/variables.tf

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,6 @@ variable "lambda_at_edge" {
213213
default = false
214214
}
215215

216-
variable "send_to_firehose" {
217-
type = bool
218-
description = "Enable sending logs to firehose"
219-
default = false
220-
}
221-
222216
variable "filter_pattern" {
223217
type = string
224218
description = "Filter pattern to use for the log subscription filter"
@@ -228,13 +222,11 @@ variable "filter_pattern" {
228222
variable "log_destination_arn" {
229223
type = string
230224
description = "Destination ARN to use for the log subscription filter"
231-
default = ""
232225
}
233226

234227
variable "log_subscription_role_arn" {
235228
type = string
236229
description = "The ARN of the IAM role to use for the log subscription filter"
237-
default = ""
238230
}
239231

240232
variable "permission_statements" {

0 commit comments

Comments
 (0)