Skip to content

Commit fcfc4f1

Browse files
committed
eli-304 amending firehose to use 'raw' endpoint
1 parent 1ca5352 commit fcfc4f1

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

infrastructure/modules/splunk_forwarder/firehose.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ resource "aws_kinesis_firehose_delivery_stream" "splunk_delivery_stream" {
3131
splunk_configuration {
3232
hec_endpoint = var.splunk_hec_endpoint
3333
hec_token = var.splunk_hec_token
34-
hec_endpoint_type = "Event"
34+
hec_endpoint_type = "Raw"
3535
s3_backup_mode = "FailedEventsOnly"
3636

3737
s3_configuration {

infrastructure/stacks/api-layer/eventbridge.tf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,15 @@ resource "aws_cloudwatch_event_target" "firehose_target" {
7575

7676
input_template = jsonencode({
7777
time = "<time>"
78-
host = "aws"
79-
source = "aws:cloudwatch:alarm"
78+
source = "elid-${var.environment}:cloudwatch:alarm"
8079
sourcetype = "aws:cloudwatch:alarm"
8180
event = {
82-
account_id = "<account>"
83-
region = "<region>"
8481
alarm_name = "<alarm_name>"
8582
new_state = "<new_state>"
8683
old_state = "<old_state>"
8784
reason = "<reason>"
8885
severity = "<new_state>" == "ALARM" ? "high" : "info"
86+
region = "<region>"
8987
}
9088
})
9189
}

0 commit comments

Comments
 (0)