diff --git a/main.tf b/main.tf index 3d0b6a4..dd6134e 100644 --- a/main.tf +++ b/main.tf @@ -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" diff --git a/modules/eks/outputs.tf b/modules/eks/outputs.tf index ddbdcb1..37cf257 100644 --- a/modules/eks/outputs.tf +++ b/modules/eks/outputs.tf @@ -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 } \ No newline at end of file diff --git a/outputs.tf b/outputs.tf index 121a399..6209819 100644 --- a/outputs.tf +++ b/outputs.tf @@ -5,4 +5,8 @@ output "public_subnets" { output "private_subnets" { value = module.network.private_subnet_cidr_block -} \ No newline at end of file +} + +output "eks_endpoint" { + value = module.eks.endpoint +}