From 82d1a11d58995bc1fe9b79f90183cef011e4ec2c Mon Sep 17 00:00:00 2001 From: Pat Heard Date: Wed, 24 Apr 2024 15:17:59 -0400 Subject: [PATCH] chore: add Sentinel Forwarder lambda outputs (#1281) Add outputs for the Sentinel Forwarder Lambda function's ARN and name. These will be used by other modules to process CloudWatch logs with the same function. --- aws/eks/outputs.tf | 9 +++++++++ aws/eks/sentinel.tf | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/aws/eks/outputs.tf b/aws/eks/outputs.tf index 4c0bc2b55..bb692db77 100644 --- a/aws/eks/outputs.tf +++ b/aws/eks/outputs.tf @@ -89,3 +89,12 @@ output "karpenter_instance_profile" { output "quicksight_security_group_id" { value = aws_security_group.quicksight.id } + +# Sentinel +output "sentinel_forwarder_cloudwatch_lambda_arn" { + value = length(module.sentinel_forwarder) != 0 ? module.sentinel_forwarder[0].lambda_arn : null +} + +output "sentinel_forwarder_cloudwatch_lambda_name" { + value = length(module.sentinel_forwarder) != 0 ? module.sentinel_forwarder[0].lambda_name : null +} diff --git a/aws/eks/sentinel.tf b/aws/eks/sentinel.tf index 36c0185c0..ff1d5331b 100644 --- a/aws/eks/sentinel.tf +++ b/aws/eks/sentinel.tf @@ -9,7 +9,7 @@ locals { # and https://docs.google.com/document/d/16LLelZ7WEKrnbocrl0Az74JqkCv5DBZ9QILRBUFJQt8/edit#heading=h.z87ipkd84djw module "sentinel_forwarder" { count = var.enable_sentinel_forwarding ? 1 : 0 - source = "github.com/cds-snc/terraform-modules//sentinel_forwarder?ref=v9.3.8" + source = "github.com/cds-snc/terraform-modules//sentinel_forwarder?ref=v9.4.2" function_name = "sentinel-cloud-watch-forwarder" billing_tag_value = "notification-canada-ca-${var.env}"