Created
January 8, 2021 04:24
-
-
Save serverok/2a35ef1687b1c04738d359d61b411959 to your computer and use it in GitHub Desktop.
eks-cluster.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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