shaikhsalman's picture
refactor: merged structure - model at center, DevSecOps wrapped around it
9d4d5c7 verified
# EKS Module Outputs
output "cluster_id" {
description = "EKS cluster ID"
value = aws_eks_cluster.this.id
}
output "cluster_arn" {
description = "EKS cluster ARN"
value = aws_eks_cluster.this.arn
}
output "cluster_endpoint" {
description = "EKS cluster API endpoint"
value = aws_eks_cluster.this.endpoint
}
output "cluster_security_group_id" {
description = "Cluster security group ID"
value = aws_eks_cluster.this.vpc_config[0].cluster_security_group_id
}
output "oidc_provider_arn" {
description = "OIDC provider ARN for IRSA"
value = aws_iam_openid_connect_provider.cluster.arn
}
output "oidc_provider_url" {
description = "OIDC provider URL"
value = aws_iam_openid_connect_provider.cluster.url
}
output "irsa_role_arns" {
description = "Map of IRSA role ARNs"
value = { for k, v in aws_iam_role.irsa : k => v.arn }
}
output "node_group_arns" {
description = "Node group ARNs"
value = { for k, v in aws_eks_node_group.this : k => v.arn }
}
output "kubeconfig_command" {
description = "Command to update kubeconfig"
value = "aws eks update-kubeconfig --region ${var.region} --name ${var.cluster_name}"
}