Skip to content

Commit

Permalink
testing cluster_name
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyblasczyk committed Oct 10, 2024
1 parent 2283280 commit 2f0f12e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion modules/app_eks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ data "aws_subnet" "private" {
id = var.network_private_subnets[count.index]
}


module "eks" {
source = "terraform-aws-modules/eks/aws"
version = "~> 17.23"
Expand Down
2 changes: 1 addition & 1 deletion modules/app_eks/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
output "autoscaling_group_names" {
value = { for name, value in module.eks.node_groups : name => lookup(lookup(lookup(value, "resources")[0], "autoscaling_groups")[0], "name") }
}
output "cluster_id" {
output "cluster_name" {
value = module.eks.cluster_id
description = "ID of the created EKS cluster"
}
Expand Down
4 changes: 2 additions & 2 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ output "bucket_region" {
value = data.aws_s3_bucket.file_storage.region
}

output "cluster_id" {
value = module.app_eks.cluster_id
output "cluster_name" {
value = module.app_eks.cluster_name
}

output "cluster_node_role" {
Expand Down

0 comments on commit 2f0f12e

Please sign in to comment.