We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d151b2 commit 3d8af0dCopy full SHA for 3d8af0d
examples/eks_managed_node_group/main.tf
@@ -173,6 +173,10 @@ module "eks" {
173
}
174
]
175
176
+ remote_access = {
177
+ ec2_ssh_key = "my-ssh-key"
178
+ }
179
+
180
update_config = {
181
max_unavailable_percentage = 50 # or set `max_unavailable`
182
modules/eks-managed-node-group/main.tf
@@ -295,7 +295,7 @@ resource "aws_eks_node_group" "this" {
295
296
297
dynamic "remote_access" {
298
- for_each = var.remote_access
+ for_each = length(var.remote_access) > 0 ? [var.remote_access] : []
299
content {
300
ec2_ssh_key = lookup(remote_access.value, "ec2_ssh_key", null)
301
source_security_group_ids = lookup(remote_access.value, "source_security_group_ids", [])
0 commit comments