hearth/terraform/modules/nlb/outputs.tf
Eric Garcia e78000831e Initial commit: Port infrastructure from coherence-mcp
Hearth is the infrastructure home for the letemcook ecosystem.

Ported from coherence-mcp/infra:
- Terraform modules (VPC, EKS, IAM, NLB, S3, storage)
- Kubernetes manifests (Forgejo, ingress, cert-manager, karpenter)
- Deployment scripts (phased rollout)

Status: Not deployed. EKS cluster needs to be provisioned.

Next steps:
1. Bootstrap terraform backend
2. Deploy phase 1 (foundation)
3. Deploy phase 2 (core services including Forgejo)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 06:06:13 -05:00

67 lines
1.6 KiB
HCL

# NLB Module - Outputs
# RFC 0039: ADR-Compliant Foundation Infrastructure
output "arn" {
description = "NLB ARN"
value = aws_lb.main.arn
}
output "dns_name" {
description = "NLB DNS name"
value = aws_lb.main.dns_name
}
output "zone_id" {
description = "NLB Route53 zone ID"
value = aws_lb.main.zone_id
}
output "target_group_https_arn" {
description = "HTTPS target group ARN"
value = aws_lb_target_group.https.arn
}
output "target_group_http_arn" {
description = "HTTP target group ARN"
value = aws_lb_target_group.http.arn
}
output "target_group_dns_udp_arn" {
description = "DNS UDP target group ARN"
value = aws_lb_target_group.dns_udp.arn
}
output "target_group_dns_tcp_arn" {
description = "DNS TCP target group ARN"
value = aws_lb_target_group.dns_tcp.arn
}
output "target_group_smtp_arn" {
description = "SMTP target group ARN"
value = aws_lb_target_group.smtp.arn
}
output "target_group_submission_arn" {
description = "Email submission target group ARN"
value = aws_lb_target_group.submission.arn
}
output "target_group_imaps_arn" {
description = "IMAPS target group ARN"
value = aws_lb_target_group.imaps.arn
}
output "listener_https_arn" {
description = "HTTPS listener ARN"
value = aws_lb_listener.https.arn
}
output "listener_http_arn" {
description = "HTTP listener ARN"
value = aws_lb_listener.http.arn
}
output "nlb_ip_addresses" {
description = "List of NLB IP addresses (from subnet mappings when using EIPs)"
value = [for eni in aws_lb.main.subnet_mapping : eni.private_ipv4_address if eni.private_ipv4_address != null]
}