Skip to content

Commit

Permalink
Merge pull request #40 from fluxcd/eks-disable-kms-logs
Browse files Browse the repository at this point in the history
EKS: Disable cloudwatch logs & cluster encryption
  • Loading branch information
darkowlzz authored May 22, 2024
2 parents ab4e0c0 + 6ab9c82 commit 2de4c29
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tf-modules/aws/eks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ 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"]
launch_template_tags = module.tags.tags
}

eks_managed_node_groups = {
# Create node groups using on-demand nodes and spot nodes.
blue = {}
green = {
min_size = 1
Expand All @@ -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
}

Expand Down

0 comments on commit 2de4c29

Please sign in to comment.