We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 81b0bc2 + 8ecebe1 commit a7675abCopy full SHA for a7675ab
2 files changed
aws/eks_node_group/main.tf
@@ -19,8 +19,11 @@ resource "aws_eks_node_group" "nodes" {
19
node_role_arn = var.node_iam_role.arn
20
tags = local.node_group_tags
21
22
- remote_access {
23
- ec2_ssh_key = var.ec2_ssh_key
+ dynamic "remote_access" {
+ for_each = [var.ec2_ssh_key]
24
+ content {
25
+ ec2_ssh_key = remote_access.value
26
+ }
27
}
28
29
scaling_config {
aws/eks_node_group/variables.tf
@@ -34,6 +34,7 @@ variable "max_size" {
34
variable "ec2_ssh_key" {
35
description = "(Optional) EC2 Key Pair name that provides access for SSH communication with the worker nodes in the EKS Node Group."
36
type = string
37
+ default = null
38
39
40
variable "disk_size" {
0 commit comments