Skip to content

Commit 2f10ef1

Browse files
fix: deduplicate ACM ARNs in NLB ssl-cert annotation
Use distinct() to avoid duplicate ARNs when multiple domains share the same ACM wildcard certificate. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a8a6fd2 commit 2f10ef1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • modules/ingress/nginx_gateway_fabric_legacy_aws/1.0

modules/ingress/nginx_gateway_fabric_legacy_aws/1.0/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ locals {
2828
acm_mode = !local.use_ack_acm && length(local.acm_cert_domains) > 0
2929

3030
# ACM ARNs to attach to NLB for TLS termination
31-
acm_cert_arns = local.acm_mode ? [
31+
acm_cert_arns = local.acm_mode ? distinct([
3232
for domain_key, domain in local.acm_cert_domains : domain.certificate_reference
33-
] : []
33+
]) : []
3434

3535
# K8s secret name for ACM cert domains — the ACK Certificate CRD exports cert to this secret
3636
# Only relevant when ACK controller is available

0 commit comments

Comments
 (0)