Skip to content

Commit

Permalink
feat: Adding optional kms key id to encrypt cw log group for fluent b…
Browse files Browse the repository at this point in the history
…it (#1494)

* Adding optional kms key id to encrypt cw log group

* Fixing var:

* Converting to null
  • Loading branch information
zestrells authored Oct 15, 2022
1 parent 155b284 commit 6052094
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/aws/aws-for-fluent-bit.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ locals {
iam_policy_override = null
default_network_policy = true
containers_log_retention_in_days = 180
kms_key_id = null
name_prefix = "${var.cluster-name}-aws-for-fluent-bit"
},
var.aws-for-fluent-bit
Expand Down Expand Up @@ -80,6 +81,7 @@ resource "aws_cloudwatch_log_group" "aws-for-fluent-bit" {
count = local.aws-for-fluent-bit["enabled"] ? 1 : 0
name = "/aws/eks/${var.cluster-name}/containers"
retention_in_days = local.aws-for-fluent-bit["containers_log_retention_in_days"]
kms_key_id = local.aws-for-fluent-bit["kms_key_id"]
}

resource "kubernetes_namespace" "aws-for-fluent-bit" {
Expand Down

0 comments on commit 6052094

Please sign in to comment.