Skip to content

Commit

Permalink
fix: Add Name tag for EKS cloudwatch log group (#2500)
Browse files Browse the repository at this point in the history
Co-authored-by: Vivian Ta <vivianta@rivian.com>
Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
  • Loading branch information
3 people committed Mar 23, 2023
1 parent 90bba6e commit e64a490
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ resource "aws_cloudwatch_log_group" "this" {
retention_in_days = var.cloudwatch_log_group_retention_in_days
kms_key_id = var.cloudwatch_log_group_kms_key_id

tags = var.tags
tags = merge(
var.tags,
{ Name = "/aws/eks/${var.cluster_name}/cluster" }
)
}

################################################################################
Expand Down

0 comments on commit e64a490

Please sign in to comment.