forked from PinSpace-Org/GistPin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputs.tf
More file actions
25 lines (22 loc) 路 790 Bytes
/
Copy pathoutputs.tf
File metadata and controls
25 lines (22 loc) 路 790 Bytes
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
output "cluster_name" {
description = "EKS cluster name"
value = aws_eks_cluster.ephemeral.name
}
output "cluster_endpoint" {
description = "EKS API server endpoint"
value = aws_eks_cluster.ephemeral.endpoint
}
output "kubeconfig_base64" {
description = "Base64-encoded kubeconfig for the ephemeral cluster"
sensitive = true
value = base64encode(templatefile("${path.module}/kubeconfig.tpl", {
cluster_name = aws_eks_cluster.ephemeral.name
cluster_endpoint = aws_eks_cluster.ephemeral.endpoint
cluster_ca = aws_eks_cluster.ephemeral.certificate_authority[0].data
region = var.region
}))
}
output "cost_tag" {
description = "Cost-tracking tag value for this environment"
value = "ephemeral/${var.environment}"
}