Skip to content

Commit

Permalink
chore: add Sentinel Forwarder lambda outputs (#1281)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
patheard authored Apr 24, 2024
1 parent df7024f commit 82d1a11
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions aws/eks/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion aws/eks/sentinel.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit 82d1a11

Please sign in to comment.