Repository navigation
Expand file tree
/
Copy pathoutputs.tf
More file actions
94 lines (77 loc) · 2.49 KB
/
Copy pathoutputs.tf
File metadata and controls
94 lines (77 loc) · 2.49 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
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
85
86
87
88
89
90
91
92
93
94
# Cluster Information
output "cluster_id" {
description = "EKS cluster ID"
value = aws_eks_cluster.main.id
}
output "cluster_name" {
description = "EKS cluster name"
value = aws_eks_cluster.main.name
}
output "cluster_arn" {
description = "EKS cluster ARN"
value = aws_eks_cluster.main.arn
}
output "cluster_endpoint" {
description = "EKS cluster API endpoint"
value = aws_eks_cluster.main.endpoint
}
output "cluster_version" {
description = "Kubernetes version"
value = aws_eks_cluster.main.version
}
output "cluster_security_group_id" {
description = "EKS cluster security group ID"
value = aws_eks_cluster.main.vpc_config[0].cluster_security_group_id
}
output "cluster_certificate_authority_data" {
description = "Cluster CA certificate data (base64 encoded)"
value = aws_eks_cluster.main.certificate_authority[0].data
sensitive = true
}
# OIDC Provider (for IRSA)
output "cluster_oidc_issuer_url" {
description = "OIDC issuer URL"
value = aws_eks_cluster.main.identity[0].oidc[0].issuer
}
output "cluster_oidc_provider_arn" {
description = "OIDC provider ARN for IRSA"
value = aws_iam_openid_connect_provider.eks.arn
}
# Node Group Information
output "node_group_id" {
description = "EKS node group ID"
value = aws_eks_node_group.infra_nodes.id
}
output "node_group_arn" {
description = "EKS node group ARN"
value = aws_eks_node_group.infra_nodes.arn
}
output "node_group_status" {
description = "EKS node group status"
value = aws_eks_node_group.infra_nodes.status
}
output "cpu_node_group_id" {
description = "EKS CPU ML node group ID"
value = try(aws_eks_node_group.cpu_nodes[0].id, null)
}
output "cpu_node_group_status" {
description = "EKS CPU ML node group status"
value = try(aws_eks_node_group.cpu_nodes[0].status, null)
}
output "node_launch_template_id" {
description = "ID of the launch template used for EKS infra (general) worker nodes"
value = aws_launch_template.eks_infra_nodes.id
}
output "node_launch_template_latest_version" {
description = "Latest version of the infra worker node launch template"
value = aws_launch_template.eks_infra_nodes.latest_version
}
# IAM Roles
output "cluster_iam_role_arn" {
description = "IAM role ARN for EKS cluster"
value = aws_iam_role.eks_cluster_role.arn
}
output "worker_nodes_iam_role_arn" {
description = "IAM role ARN for worker nodes"
value = aws_iam_role.worker_nodes_role.arn
}