Skip to content

Commit

Permalink
fix: Add missing security group rule to allow workers to communicate …
Browse files Browse the repository at this point in the history
…with the cluster API
  • Loading branch information
js-timbirkett committed Mar 12, 2020
1 parent 919c4a0 commit 3f81efb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions modules/worker_groups/worker_groups.tf
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,17 @@ resource "aws_security_group_rule" "workers_ingress_cluster_https" {
type = "ingress"
}

resource "aws_security_group_rule" "cluster_https_workers_ingress" {
count = var.worker_create_security_group && var.create_eks ? 1 : 0
description = "Allow pods to communicate with the EKS cluster API."
protocol = "tcp"
security_group_id = var.cluster_security_group_id
source_security_group_id = local.worker_security_group_id
from_port = 443
to_port = 443
type = "ingress"
}

resource "aws_iam_role" "worker_groups" {
count = var.manage_worker_iam_resources && var.create_eks ? 1 : 0
name_prefix = var.workers_role_name != "" ? null : var.cluster_name
Expand Down

0 comments on commit 3f81efb

Please sign in to comment.