diff --git a/tf-modules/aws/eks/main.tf b/tf-modules/aws/eks/main.tf index 16c259c..94cbca5 100644 --- a/tf-modules/aws/eks/main.tf +++ b/tf-modules/aws/eks/main.tf @@ -28,6 +28,7 @@ module "eks" { vpc_id = module.vpc.vpc_id subnet_ids = module.vpc.private_subnets + # Define the default node group configuration. eks_managed_node_group_defaults = { disk_size = 50 instance_types = ["t2.medium"] @@ -35,6 +36,7 @@ module "eks" { } eks_managed_node_groups = { + # Create node groups using on-demand nodes and spot nodes. blue = {} green = { min_size = 1 @@ -48,6 +50,14 @@ module "eks" { enable_cluster_creator_admin_permissions = true + # Disable log aggregation for such ephemeral clusters. + cluster_enabled_log_types = [] + create_cloudwatch_log_group = false + + # Disable encryption unless it's needed for some test. + cluster_encryption_config = {} + create_kms_key = false + tags = module.tags.tags }