Skip to content

Commit

Permalink
fix: public_access_cidrs require a value even if public endpoint is…
Browse files Browse the repository at this point in the history
… disabled (#2320)

Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
  • Loading branch information
smelchior and bryantbiggs authored Dec 6, 2022
1 parent 2def94e commit 3f6d915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ resource "aws_eks_cluster" "this" {
subnet_ids = coalescelist(var.control_plane_subnet_ids, var.subnet_ids)
endpoint_private_access = var.cluster_endpoint_private_access
endpoint_public_access = var.cluster_endpoint_public_access
public_access_cidrs = var.cluster_endpoint_public_access ? var.cluster_endpoint_public_access_cidrs : []
public_access_cidrs = var.cluster_endpoint_public_access_cidrs
}

dynamic "kubernetes_network_config" {
Expand Down

0 comments on commit 3f6d915

Please sign in to comment.