45 lines
1.1 KiB
Terraform
45 lines
1.1 KiB
Terraform
|
|
# Outputs for AWS Module
|
||
|
|
|
||
|
|
output "vpc_id" {
|
||
|
|
value = aws_vpc.main.id
|
||
|
|
description = "VPC ID"
|
||
|
|
}
|
||
|
|
|
||
|
|
output "cluster_name" {
|
||
|
|
value = aws_eks_cluster.main.name
|
||
|
|
description = "EKS cluster name"
|
||
|
|
}
|
||
|
|
|
||
|
|
output "cluster_endpoint" {
|
||
|
|
value = aws_eks_cluster.main.endpoint
|
||
|
|
description = "EKS cluster endpoint"
|
||
|
|
sensitive = true
|
||
|
|
}
|
||
|
|
|
||
|
|
output "cluster_certificate_authority_data" {
|
||
|
|
value = aws_eks_cluster.main.certificate_authority[0].data
|
||
|
|
description = "EKS cluster certificate authority data"
|
||
|
|
sensitive = true
|
||
|
|
}
|
||
|
|
|
||
|
|
output "cluster_security_group_id" {
|
||
|
|
value = aws_security_group.eks_cluster.id
|
||
|
|
description = "EKS cluster security group ID"
|
||
|
|
}
|
||
|
|
|
||
|
|
output "subnet_ids" {
|
||
|
|
value = {
|
||
|
|
eks = [for s in aws_subnet.eks : s.id]
|
||
|
|
validators = [for s in aws_subnet.validators : s.id]
|
||
|
|
rpc = [for s in aws_subnet.rpc : s.id]
|
||
|
|
}
|
||
|
|
description = "Subnet IDs by type"
|
||
|
|
}
|
||
|
|
|
||
|
|
output "kubeconfig" {
|
||
|
|
value = null # Will be generated by external data source or script
|
||
|
|
description = "Kubeconfig for the cluster"
|
||
|
|
sensitive = true
|
||
|
|
}
|
||
|
|
|