-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathoutputs.tf
More file actions
39 lines (32 loc) · 1.36 KB
/
outputs.tf
File metadata and controls
39 lines (32 loc) · 1.36 KB
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
output "vpc_id" {
description = "VPC ID where the EKS cluster is deployed"
value = module.vpc.vpc_id
}
output "cluster_name" {
description = "EKS cluster name"
value = module.eks.cluster_name
}
output "operator_namespace" {
description = "Kubernetes namespace where Tailscale operator is deployed"
value = kubernetes_namespace_v1.tailscale_operator.metadata[0].name
}
output "operator_name" {
description = "Configured name of the Tailscale operator"
value = helm_release.tailscale_operator.name
}
output "ha_proxy_service_name" {
description = "Configured name of the Tailscale operator HA Service Proxy"
value = local.ha_proxy_service_name
}
output "cmd_kubeconfig_aws" {
description = "Command to configure kubeconfig for public access to the EKS cluster"
value = "aws eks update-kubeconfig --region ${data.aws_region.current.region} --name ${module.eks.cluster_name}"
}
output "cmd_kubeconfig_tailscale" {
description = "Command to configure kubeconfig for Tailscale access to the EKS cluster"
value = "tailscale configure kubeconfig ${helm_release.tailscale_operator.name}"
}
output "cmd_kubeconfig_tailscale_ha" {
description = "Command to configure kubeconfig for Tailscale access to the EKS cluster using the HA Service Proxy"
value = "tailscale configure kubeconfig ${local.ha_proxy_service_name}"
}