Skip to content

Commit 63a9e72

Browse files
authored
Merge pull request #145 from NHSDigital/feature/CCM-12770_splunk
CCM-12770: Splunk log sending mandatory by default
2 parents 2b40654 + ed08838 commit 63a9e72

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

infrastructure/modules/lambda/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
| <a name="input_region"></a> [region](#input\_region) | The AWS Region | `string` | n/a | yes |
4747
| <a name="input_runtime"></a> [runtime](#input\_runtime) | The runtime to use for the lambda function | `string` | n/a | yes |
4848
| <a name="input_schedule"></a> [schedule](#input\_schedule) | The fully qualified Cloudwatch Events schedule for when to run the lambda function, e.g. rate(1 day) or a cron() expression. Default disables all events resources | `string` | `""` | no |
49-
| <a name="input_send_to_firehose"></a> [send\_to\_firehose](#input\_send\_to\_firehose) | Enable sending logs to firehose | `bool` | `false` | no |
49+
| <a name="input_send_to_firehose"></a> [send\_to\_firehose](#input\_send\_to\_firehose) | Enable sending logs to firehose | `bool` | `true` | no |
5050
| <a name="input_sns_destination"></a> [sns\_destination](#input\_sns\_destination) | SNS Topic ARN to be used for on-failure Lambda invocation records | `string` | `null` | no |
5151
| <a name="input_sns_destination_kms_key"></a> [sns\_destination\_kms\_key](#input\_sns\_destination\_kms\_key) | KMS Key ARN to be used for SNS Topic for on-failure Lambda invocation records | `string` | `null` | no |
5252
| <a name="input_system_log_level"></a> [system\_log\_level](#input\_system\_log\_level) | The detail level of the Lambda platform event logs sent to CloudWatch | `string` | `"WARN"` | no |

infrastructure/modules/lambda/cloudwatch_log_subscription_filter_firehose.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
2+
count = var.send_to_firehose ? 1 : 0
33
name = trim(replace(aws_cloudwatch_log_group.main.name, "/", "-"), "-")
44
log_group_name = aws_cloudwatch_log_group.main.name
55
filter_pattern = var.filter_pattern

infrastructure/modules/lambda/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ variable "lambda_at_edge" {
216216
variable "send_to_firehose" {
217217
type = bool
218218
description = "Enable sending logs to firehose"
219-
default = false
219+
default = true
220220
}
221221

222222
variable "filter_pattern" {

0 commit comments

Comments
 (0)