Skip to content

Commit

Permalink
fix outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
zachrundle committed Aug 16, 2024
1 parent 3cb51bf commit 99b05c3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ module "network" {
vpc_cidr = "10.0.0.0/16"
}
module "eks" {
source = "./modules/eks"
create_eks = false
source = "./modules/eks"
create_eks = false
cluster_name = "${var.name}-cluster"
cluster_version = "1.30"

Expand Down
4 changes: 2 additions & 2 deletions modules/eks/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
output "endpoint" {
value = aws_eks_cluster.example.endpoint
value = aws_eks_cluster.this.endpoint
}

output "kubeconfig-certificate-authority-data" {
value = aws_eks_cluster.example.certificate_authority[0].data
value = aws_eks_cluster.this.certificate_authority[0].data
}
6 changes: 5 additions & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ output "public_subnets" {

output "private_subnets" {
value = module.network.private_subnet_cidr_block
}
}

output "eks_endpoint" {
value = module.eks.endpoint
}

0 comments on commit 99b05c3

Please sign in to comment.