From 68e23be8d244cba012decb5eebe7976f1f293a9b Mon Sep 17 00:00:00 2001 From: Jeremy Collins Date: Wed, 23 Oct 2024 14:05:17 +0100 Subject: [PATCH 1/2] Bump CloudWatch retention --- terraform/environments/performance-hub/module/ecs/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/environments/performance-hub/module/ecs/main.tf b/terraform/environments/performance-hub/module/ecs/main.tf index 0355d433536..10d5732d2a0 100644 --- a/terraform/environments/performance-hub/module/ecs/main.tf +++ b/terraform/environments/performance-hub/module/ecs/main.tf @@ -474,7 +474,7 @@ resource "aws_appautoscaling_policy" "scaling_policy_down" { resource "aws_cloudwatch_log_group" "cloudwatch_group" { #checkov:skip=CKV_AWS_158:Temporarily skip KMS encryption check while logging solution is being updated name = "${var.app_name}-ecs" - retention_in_days = 30 + retention_in_days = 365 tags = merge( var.tags_common, { From 1539b9f56c54fc0c44939edd761642ee3a5ae33e Mon Sep 17 00:00:00 2001 From: Jeremy Collins Date: Wed, 23 Oct 2024 14:22:06 +0100 Subject: [PATCH 2/2] Update comment --- terraform/environments/performance-hub/module/ecs/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/environments/performance-hub/module/ecs/main.tf b/terraform/environments/performance-hub/module/ecs/main.tf index 10d5732d2a0..f9008b5a01c 100644 --- a/terraform/environments/performance-hub/module/ecs/main.tf +++ b/terraform/environments/performance-hub/module/ecs/main.tf @@ -470,7 +470,7 @@ resource "aws_appautoscaling_policy" "scaling_policy_down" { ] } -# Set up CloudWatch group and log stream and retain logs for 30 days +# Set up CloudWatch group and log stream and retention resource "aws_cloudwatch_log_group" "cloudwatch_group" { #checkov:skip=CKV_AWS_158:Temporarily skip KMS encryption check while logging solution is being updated name = "${var.app_name}-ecs"