Allowing 443 to nodes from EKS service (#148)

This commit is contained in:
Max Williams
2018-10-09 10:38:17 +02:00
committed by GitHub
parent cd7e56c821
commit 5d9d4fb8b8
2 changed files with 12 additions and 0 deletions

View File

@@ -90,6 +90,17 @@ resource "aws_security_group_rule" "workers_ingress_cluster" {
count = "${var.worker_security_group_id == "" ? 1 : 0}"
}
resource "aws_security_group_rule" "workers_ingress_cluster_https" {
description = "Allow pods running extension API servers on port 443 to receive communication from cluster control plane."
protocol = "tcp"
security_group_id = "${aws_security_group.workers.id}"
source_security_group_id = "${local.cluster_security_group_id}"
from_port = 443
to_port = 443
type = "ingress"
count = "${var.worker_security_group_id == "" ? 1 : 0}"
}
resource "aws_iam_role" "workers" {
name_prefix = "${aws_eks_cluster.this.name}"
assume_role_policy = "${data.aws_iam_policy_document.workers_assume_role_policy.json}"