Skip to content

Commit

Permalink
* add eks_windows_key_pair_name for windows node groups
Browse files Browse the repository at this point in the history
  • Loading branch information
kg6zgj committed May 17, 2023
1 parent 4a8e2db commit 7e9f192
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ module "eks" {
eks_autoscaling_group_windows_desired_capacity = var.eks_autoscaling_group_windows_desired_capacity
eks_autoscaling_group_windows_max_size = var.eks_autoscaling_group_windows_max_size
windows_ami_type = var.windows_ami_type
eks_windows_key_pair_name = var.eks_windows_key_pair_name
}
module "eks_extras" {
source = "./modules/eks-extras"
Expand Down
1 change: 1 addition & 0 deletions modules/eks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ module "eks" {
min_size = var.eks_autoscaling_group_windows_min_size
max_size = var.eks_autoscaling_group_windows_max_size
desired_size = var.eks_autoscaling_group_windows_desired_capacity
key_name = var.eks_windows_key_pair_name
}
}
cluster_addons = {
Expand Down
6 changes: 6 additions & 0 deletions modules/eks/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,9 @@ variable "windows_ami_type" {
description = "AMI type for the Windows Nodes."
type = string
}


variable "eks_windows_key_pair_name" {
description = "security key pair to apply to the windows nodes"
type = string
}
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,8 @@ variable "vpc_cidr_public_subnets" {
description = "private subnets in the main CIDR block for the VPC."
default = ["10.0.4.0/24", "10.0.5.0/24", "10.0.6.0/24"]
}

variable "eks_windows_key_pair_name" {
type = list(string)
description = "security key pair to apply to the windows nodes"
}

0 comments on commit 7e9f192

Please sign in to comment.