diff --git a/outputs.tf b/outputs.tf index 68ac39d..2fc023e 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,3 +1,4 @@ +#### subnet module outputs #### output "public_subnet_cidrs" { value = module.subnets.public_subnet_cidrs description = "Public subnet CIDRs" @@ -16,6 +17,7 @@ output "private_subnet_ids" { value = module.subnets.private_subnet_ids } +#### vpc module outputs #### output "vpc_cidr_block" { value = module.vpc.vpc_cidr_block description = "VPC ID" @@ -26,6 +28,7 @@ output "vpc_id" { description = "VPC ID Main VPC" } +#### eks_cluster outputs #### output "eks_cluster_id" { description = "The name of the cluster" value = module.eks_cluster.eks_cluster_id @@ -61,6 +64,12 @@ output "eks_cluster_auth_token" { value = module.eks_cluster.eks_cluster_auth_token } +output "workers_security_group_ids" { + description = "Security group the worker nodes belong to" + value = module.eks_cluster.workers_security_group_ids +} + +#### eks_node_group outputs #### output "eks_node_group_role_arn" { description = "ARN of the worker nodes IAM role" value = module.eks_node_group.eks_node_group_role_arn @@ -90,8 +99,3 @@ output "eks_node_group_status" { description = "Status of the EKS Node Group" value = module.eks_node_group.eks_node_group_status } - -output "workers_security_group_ids" { - description = "Security group the worker nodes belong to" - value = module.eks_node_group.workers_security_group_ids -}