forked from squareops/terraform-aws-eks-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
56 lines (48 loc) · 2.04 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
output "environment" {
description = "Environment Name for the EKS cluster"
value = var.environment
}
output "nginx_ingress_controller_dns_hostname" {
description = "DNS hostname of the NGINX Ingress Controller."
value = var.ingress_nginx_enabled ? data.kubernetes_service.nginx-ingress.status[0].load_balancer[0].ingress[0].hostname : null
}
output "ebs_encryption_enable" {
description = "Whether Amazon Elastic Block Store (EBS) encryption is enabled or not."
value = "Encrypted by default"
}
output "efs_id" {
value = var.efs_storage_class_enabled ? module.efs.*.efs_id : null
description = "ID of the Amazon Elastic File System (EFS) that has been created for the EKS cluster."
}
output "internal_nginx_ingress_controller_dns_hostname" {
description = "DNS hostname of the NGINX Ingress Controller that can be used to access it from within the cluster."
value = var.internal_ingress_nginx_enabled ? data.kubernetes_service.internal-nginx-ingress.status[0].load_balancer[0].ingress[0].hostname : null
}
output "kubeclarity" {
description = "Kubeclarity endpoint and credentials"
value = var.kubeclarity_enabled ? {
username = "admin",
password = nonsensitive(random_password.kube_clarity.result),
url = var.kubeclarity_hostname
} : null
}
output "kubecost" {
description = "Kubecost endpoint and credentials"
value = var.kubecost_enabled ? {
username = "admin",
password = nonsensitive(random_password.kubecost.result),
url = var.kubecost_hostname
} : null
}
output "istio_ingressgateway_dns_hostname" {
description = "DNS hostname of the Istio Ingress Gateway."
value = var.istio_enabled ? data.kubernetes_service.istio-ingress.status[0].load_balancer[0].ingress[0].hostname : null
}
output "defectdojo" {
description = "DefectDojo endpoint and credentials"
value = var.defectdojo_enabled ? {
username = "admin",
password = nonsensitive(data.kubernetes_secret.defectdojo[0].data["DD_ADMIN_PASSWORD"]),
url = var.defectdojo_hostname
} : null
}