Skip to content

Instantly share code, notes, and snippets.

@serverok
Created January 8, 2021 04:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save serverok/2a35ef1687b1c04738d359d61b411959 to your computer and use it in GitHub Desktop.
Save serverok/2a35ef1687b1c04738d359d61b411959 to your computer and use it in GitHub Desktop.
eks-cluster.tf
Edit file
eks-cluster.tf
Find
resource "aws_security_group_rule" "demo-cluster-ingress-workstation-https" {
cidr_blocks = [local.workstation-external-cidr]
description = "Allow workstation to communicate with the cluster API Server"
from_port = 443
protocol = "tcp"
security_group_id = aws_security_group.demo-cluster.id
to_port = 443
type = "ingress"
}
Add below
resource "aws_security_group_rule" "demo-cluster-ingress-workstation-8080" {
cidr_blocks = [local.workstation-external-cidr]
description = "Allow workstation to communicate with the cluster API Server"
from_port = 8080
protocol = "tcp"
security_group_id = aws_security_group.demo-cluster.id
to_port = 8080
type = "ingress"
}
resource "aws_security_group_rule" "demo-cluster-ingress-workstation-5000" {
cidr_blocks = [local.workstation-external-cidr]
description = "Allow workstation to communicate with the cluster API Server"
from_port = 5000
protocol = "tcp"
security_group_id = aws_security_group.demo-cluster.id
to_port = 5000
type = "ingress"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment