Skip to content

Commit

Permalink
Merge pull request #75 from sighupio/bugfix/ssh-to-nodes-count-0
Browse files Browse the repository at this point in the history
fix: guard is stopping ssh to nodes rule to being active on private clusters
  • Loading branch information
Al-Pragliola authored Mar 12, 2024
2 parents 3aa831b + 573f81a commit 48c105f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</h1>
<!-- markdownlint-enable MD033 -->

![Release](https://img.shields.io/badge/Latest%20Release-v2.0.2-blue)
![Release](https://img.shields.io/badge/Latest%20Release-v3.1.1-blue)
![License](https://img.shields.io/github/license/sighupio/fury-eks-installer?label=License)
[![Slack](https://img.shields.io/badge/slack-@kubernetes/fury-yellow.svg?logo=slack&label=Slack)](https://kubernetes.slack.com/archives/C0154HYTAQH)

Expand Down
2 changes: 1 addition & 1 deletion modules/eks/ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ resource "aws_security_group" "node_pool_shared" {
}

resource "aws_security_group_rule" "ssh_to_nodes" {
count = (length(coalesce(var.ssh_to_nodes_allowed_cidr_blocks, [])) > 0 && length(coalesce(var.cluster_endpoint_private_access_cidrs, [])) > 0) ? 1 : 0
count = (length(coalesce(var.ssh_to_nodes_allowed_cidr_blocks, [])) > 0 || length(coalesce(var.cluster_endpoint_private_access_cidrs, [])) > 0) ? 1 : 0
type = "ingress"
from_port = 22
to_port = 22
Expand Down

0 comments on commit 48c105f

Please sign in to comment.