From 5709549cebc0269603baf9f810b8c25ff110bdc8 Mon Sep 17 00:00:00 2001 From: William Anderson Date: Tue, 10 Jun 2025 10:02:06 +0000 Subject: [PATCH 1/2] Add CanonicalHostedZoneID NLB attribute as stack output --- templates/darktrace-vsensor-main.template.yaml | 7 +++++++ templates/darktrace-vsensor-workload.template.yaml | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/templates/darktrace-vsensor-main.template.yaml b/templates/darktrace-vsensor-main.template.yaml index 862076b..9b5f611 100644 --- a/templates/darktrace-vsensor-main.template.yaml +++ b/templates/darktrace-vsensor-main.template.yaml @@ -787,6 +787,13 @@ Outputs: - VSensorStack - Outputs.LoadBalancerDNS + LoadBalancerDNSZoneNameID: + Description: Route 53 hosted zone name of the Network Load Balancer, required for osSensor clients. + Value: + Fn::GetAtt: + - VSensorStack + - Outputs.LoadBalancerDNSZoneNameID + TrafficMirrorFilterId: Description: ID of the Traffic Mirror filter generated for Traffic Mirror sessions. Value: diff --git a/templates/darktrace-vsensor-workload.template.yaml b/templates/darktrace-vsensor-workload.template.yaml index 3d9a375..99d8921 100644 --- a/templates/darktrace-vsensor-workload.template.yaml +++ b/templates/darktrace-vsensor-workload.template.yaml @@ -1541,6 +1541,10 @@ Outputs: Description: DNS name of the Network Load Balancer, required for osSensor clients. Value: !GetAtt LoadBalancer.DNSName + LoadBalancerDNSZoneNameID: + Description: Route 53 hosted zone name of the Network Load Balancer, required for osSensor clients. + Value: !GetAtt LoadBalancer.CanonicalHostedZoneID + TrafficMirrorFilterId: Description: ID of the Traffic Mirror filter generated for Traffic Mirror sessions. Value: !Ref TrafficMirrorFilter From cc9f8e6eff064c6fd70f7d52d9b7488f4619200c Mon Sep 17 00:00:00 2001 From: William Anderson Date: Tue, 10 Jun 2025 10:15:24 +0000 Subject: [PATCH 2/2] Shorten Output names --- templates/darktrace-vsensor-main.template.yaml | 4 ++-- templates/darktrace-vsensor-workload.template.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/darktrace-vsensor-main.template.yaml b/templates/darktrace-vsensor-main.template.yaml index 9b5f611..95e542f 100644 --- a/templates/darktrace-vsensor-main.template.yaml +++ b/templates/darktrace-vsensor-main.template.yaml @@ -787,12 +787,12 @@ Outputs: - VSensorStack - Outputs.LoadBalancerDNS - LoadBalancerDNSZoneNameID: + LoadBalancerDNSZoneID: Description: Route 53 hosted zone name of the Network Load Balancer, required for osSensor clients. Value: Fn::GetAtt: - VSensorStack - - Outputs.LoadBalancerDNSZoneNameID + - Outputs.LoadBalancerDNSZoneID TrafficMirrorFilterId: Description: ID of the Traffic Mirror filter generated for Traffic Mirror sessions. diff --git a/templates/darktrace-vsensor-workload.template.yaml b/templates/darktrace-vsensor-workload.template.yaml index 99d8921..33da28d 100644 --- a/templates/darktrace-vsensor-workload.template.yaml +++ b/templates/darktrace-vsensor-workload.template.yaml @@ -1541,7 +1541,7 @@ Outputs: Description: DNS name of the Network Load Balancer, required for osSensor clients. Value: !GetAtt LoadBalancer.DNSName - LoadBalancerDNSZoneNameID: + LoadBalancerDNSZoneID: Description: Route 53 hosted zone name of the Network Load Balancer, required for osSensor clients. Value: !GetAtt LoadBalancer.CanonicalHostedZoneID