Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature: enable cluster logging #278

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ module "eks" {
version = "~> 19.0"
cluster_name = local.cluster_name
cluster_version = var.kubernetes_version
cluster_enabled_log_types = [] # disable cluster control plan logging
create_cloudwatch_log_group = false
cluster_enabled_log_types = var.cluster_enabled_log_types == null ? [] : var.cluster_enabled_log_types
create_cloudwatch_log_group = var.cluster_enabled_log_types == null ? false : true
cluster_endpoint_private_access = true
cluster_endpoint_public_access = var.cluster_api_mode == "public" ? true : false
cluster_endpoint_public_access_cidrs = local.cluster_endpoint_public_access_cidrs
Expand Down
7 changes: 7 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ variable "default_private_access_cidrs" {
default = null
}

variable "cluster_enabled_log_types" {
description = "List of audit to record from EKS cluster in CloudWatch"
type = list(string)
default = null
# Example value: ["audit","api","authenticator"]
}

variable "cluster_endpoint_public_access_cidrs" {
description = "List of CIDRs to access Kubernetes cluster - Public."
type = list(string)
Expand Down