-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathoutputs.tf
More file actions
39 lines (32 loc) · 1.73 KB
/
outputs.tf
File metadata and controls
39 lines (32 loc) · 1.73 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 "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_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_kubectl_ha_proxy_apply" {
description = "Command to deploy the Tailscale high availability API server proxy - https://tailscale.com/kb/1437/kubernetes-operator-api-server-proxy#configuring-a-high-availability-api-server-proxy"
value = "OPERATOR_NAME=${helm_release.tailscale_operator.name} envsubst < tailscale-api-server-ha-proxy.yaml | kubectl apply -f -"
}
output "cmd_kubectl_ha_proxy_delete" {
description = "Command to delete the Tailscale high availability API server proxy - https://tailscale.com/kb/1437/kubernetes-operator-api-server-proxy#configuring-a-high-availability-api-server-proxy"
value = "OPERATOR_NAME=${helm_release.tailscale_operator.name} envsubst < tailscale-api-server-ha-proxy.yaml | kubectl delete -f -"
}