-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathoutputs.tf
84 lines (71 loc) · 2.91 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
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.ingress-nginx[0].status[0].load_balancer[0].ingress[0].hostname : null
}
output "internal_nginx_ingress_controller_dns_hostname" {
description = "DNS hostname of the NGINX Ingress Controller."
value = var.private_ingress_nginx_enabled ? data.kubernetes_service.private-ingress-nginx[0].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.aws-efs-filesystem-with-storage-class.*.id : null
description = "ID of the Amazon Elastic File System (EFS) that has been created for the EKS cluster."
}
output "kubeclarity" {
description = "Kubeclarity endpoint and credentials"
value = var.kubeclarity_enabled ? {
username = "admin",
password = nonsensitive(random_password.kube-clarity[0].result),
url = var.kubeclarity_hostname
} : null
}
output "kubecost" {
description = "Kubecost endpoint and credentials"
value = var.kubecost_enabled ? {
username = "admin",
password = nonsensitive(random_password.kubecost[0].result),
url = var.kubecost_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
}
output "k8s_dashboard_admin_token" {
description = "Kubernetes-Dashboard Admin Token"
value = var.kubernetes_dashboard_enabled ? module.kubernetes-dashboard[0].k8s-dashboard-admin-token : ""
}
output "k8s_dashboard_read_only_token" {
description = "Kubernetes-Dashboard Read Only Token"
value = var.kubernetes_dashboard_enabled ? module.kubernetes-dashboard[0].k8s-dashboard-read-only-token : ""
}
output "argocd_credentials" {
description = "Argocd_Info"
value = var.argocd_enabled ? module.argocd[0].argocd : null
}
output "argoworkflow_hostname" {
description = "Argocd Workflow hostname"
value = var.argoworkflow_enabled ? module.argocd-workflow[0].argoworkflow_host : null
}
output "argoworkflow_credentials" {
description = "Argocd Workflow credentials"
value = var.argoworkflow_enabled ? module.argocd-workflow[0].argo_workflow_token : null
}
output "argorollout_credentials" {
description = "Argorollout Details"
value = (
var.argorollout_enabled == true &&
var.argorollout_config.enable_dashboard == true
) ? module.argo-rollout[0].argorollout_credentials : null
}