From e662f885880f2ab9f84f4b6472a9923619b97090 Mon Sep 17 00:00:00 2001 From: satishgummadellimoj Date: Mon, 6 Nov 2023 15:31:25 +0000 Subject: [PATCH] update --- modules/eks/log_groups.tf | 2 +- modules/vpc/log_groups.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/eks/log_groups.tf b/modules/eks/log_groups.tf index 27bc3fd..974c5e1 100644 --- a/modules/eks/log_groups.tf +++ b/modules/eks/log_groups.tf @@ -2,5 +2,5 @@ resource "aws_cloudwatch_log_group" "this" { # The log group name format is /aws/eks//cluster # Reference: https://docs.aws.amazon.com/eks/latest/userguide/control-plane-logs.html name = "/aws/eks/${var.prefix}/cluster" - retention_in_days = terraform.workspace == "production" ? 90 : 7 + retention_in_days = 90 } diff --git a/modules/vpc/log_groups.tf b/modules/vpc/log_groups.tf index 1445541..82ae5a3 100644 --- a/modules/vpc/log_groups.tf +++ b/modules/vpc/log_groups.tf @@ -1,4 +1,4 @@ resource "aws_cloudwatch_log_group" "vpc_flow_log_group" { name = "/aws/vpc/${var.prefix}/flow-logs" - retention_in_days = terraform.workspace == "production" ? 90 : 7 + retention_in_days = 90 }