Files
bifrost/terraform/modules/bifrost/aws/services/eks/outputs.tf
Beyhan Oğur 880f412e2c first commit
2026-04-26 21:52:23 +03:00

34 lines
1.3 KiB
HCL

# =============================================================================
# AWS EKS Service Module — Outputs
# =============================================================================
output "cluster_name" {
description = "Name of the EKS cluster."
value = var.create_cluster ? aws_eks_cluster.this[0].name : null
}
output "cluster_endpoint" {
description = "Endpoint URL of the EKS cluster API server."
value = var.create_cluster ? aws_eks_cluster.this[0].endpoint : null
}
output "namespace" {
description = "Kubernetes namespace where Bifrost is deployed."
value = kubernetes_namespace.bifrost.metadata[0].name
}
output "service_name" {
description = "Name of the Kubernetes service exposing Bifrost."
value = kubernetes_service.bifrost.metadata[0].name
}
output "service_url" {
description = "Internal cluster URL for the Bifrost service."
value = "http://${kubernetes_service.bifrost.metadata[0].name}.${kubernetes_namespace.bifrost.metadata[0].name}.svc.cluster.local"
}
output "health_check_url" {
description = "Internal cluster URL for the Bifrost health check endpoint."
value = "http://${kubernetes_service.bifrost.metadata[0].name}.${kubernetes_namespace.bifrost.metadata[0].name}.svc.cluster.local${var.health_check_path}"
}