output "firehose_arn" { description = "Give this to other templates, such as EKS audit logging, to send their logs here too." value = aws_kinesis_firehose_delivery_stream.splunk.arn } output "verify" { description = "How to prove events arrive, and where refused ones go." value = <<-EOT Do one recognisable thing, such as creating a bucket named siem-drill-, then search Splunk for it. aws cloudwatch get-metric-statistics --namespace AWS/Firehose --metric-name DeliveryToSplunk.Success --dimensions Name=DeliveryStreamName,Value=${var.name} --statistics Average --period 300 --start-time --end-time # 1.0 means every delivery succeeded aws s3 ls s3://${aws_s3_bucket.failed.bucket}/ --recursive # empty means nothing was refused EOT }