Skip to content

Commit

Permalink
EKS Private (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
sekka1 authored Oct 4, 2021
1 parent 4caf0a5 commit a7110aa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions terraform-modules/aws/eks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ module "eks" {

cluster_endpoint_public_access = var.cluster_endpoint_public_access
cluster_endpoint_public_access_cidrs = var.cluster_endpoint_public_access_cidrs

cluster_endpoint_private_access = var.cluster_endpoint_private_access
cluster_endpoint_private_access_cidrs = var. cluster_endpoint_private_access_cidrs

cluster_encryption_config = [{
provider_key_arn = aws_kms_key.eks.arn
Expand Down
12 changes: 12 additions & 0 deletions terraform-modules/aws/eks/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,15 @@ variable "cluster_log_retention_in_days" {
default = 90
description = "Log retention in days"
}

variable "cluster_endpoint_private_access" {
type = bool
default = false
description = "Enable or disable Kube API private access"
}

variable "cluster_endpoint_private_access_cidrs" {
type = list(string)
default = null
description = "Kube API public endpoint allow access cidrs"
}

0 comments on commit a7110aa

Please sign in to comment.