Skip to content

Commit

Permalink
Merge pull request #221 from tablexi/update-optional-ssh-key
Browse files Browse the repository at this point in the history
Update optional ssh key
  • Loading branch information
als753 authored Oct 18, 2022
2 parents 81b0bc2 + 8ecebe1 commit a7675ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions aws/eks_node_group/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ resource "aws_eks_node_group" "nodes" {
node_role_arn = var.node_iam_role.arn
tags = local.node_group_tags

remote_access {
ec2_ssh_key = var.ec2_ssh_key
dynamic "remote_access" {
for_each = [var.ec2_ssh_key]
content {
ec2_ssh_key = remote_access.value
}
}

scaling_config {
Expand Down
1 change: 1 addition & 0 deletions aws/eks_node_group/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ variable "max_size" {
variable "ec2_ssh_key" {
description = "(Optional) EC2 Key Pair name that provides access for SSH communication with the worker nodes in the EKS Node Group."
type = string
default = null
}

variable "disk_size" {
Expand Down

0 comments on commit a7675ab

Please sign in to comment.