terraform-aws-eks
terraform-aws-eks copied to clipboard
Resources not being configured
I created a simple eks terrafrom template with managed eks node groups but the issue I am facing is that no resources are being created. I can see the eks cluster there but the other resources nodes, replica sets and other necessary configurations are not being mapped. I have attached the template I am using below: `module "eks" { source = "terraform-aws-modules/eks/aws" version = "20.2.1" # Use the latest version cluster_name = "my-eks-cluster" cluster_endpoint_public_access = true
cluster_addons = { coredns = { most_recent = true } kube-proxy = { most_recent = true } vpc-cni = { most_recent = true } } vpc_id = module.vpc.vpc_id subnet_ids = module.vpc.private_subnets control_plane_subnet_ids = module.vpc.intra_subnets enable_cluster_creator_admin_permissions = true
EKS Managed Node Group(s)
eks_managed_node_group_defaults = { ami_type = "AL2_x86_64" instance_types = ["m5.large"]
attach_cluster_primary_security_group = true
}
eks_managed_node_groups = { my-node-group = { min_size = 1 max_size = 2 # Keep the max size low for cost savings desired_size = 1
instance_types = ["t3.micro"]
capacity_type = "ON_DEMAND" # Use SPOT instances for further savings
}
}
tags = local.tags }
`
Is there something that I am not doing right? The core dns is not getting installed and the health check failure suggests that it is due to the fact that there are not sufficient replica sets