Skip to content

Instantly share code, notes, and snippets.

@blogumi
Created April 4, 2020 18:57
Show Gist options
  • Save blogumi/889000d99d8decfecc1f8bd8981922c1 to your computer and use it in GitHub Desktop.
Save blogumi/889000d99d8decfecc1f8bd8981922c1 to your computer and use it in GitHub Desktop.
Now that we have a way to know where traffic from the worker nodes is coming from, we can allow the worker nodes networking access to the EKS master cluster.
resource "aws_security_group_rule" "demo-cluster-ingress-node-https" {
description = "Allow pods to communicate with the cluster API Server"
from_port = 443
protocol = "tcp"
security_group_id = aws_security_group.demo-cluster.id
source_security_group_id = aws_security_group.demo-node.id
to_port = 443
type = "ingress"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment