From d458ccd19d6903eaa8328b931430119029ecee55 Mon Sep 17 00:00:00 2001 From: Brian Hayden <5826711+bhayden53@users.noreply.github.com> Date: Thu, 4 Mar 2021 03:43:41 +0000 Subject: [PATCH] added 30 day log retention policy to all lambda functions --- terraform/lambda_batch_events.tf | 1 + terraform/lambda_blackboard.tf | 1 + terraform/lambda_broadcast.tf | 1 + terraform/lambda_job_delete.tf | 1 + terraform/lambda_job_rescue.tf | 1 + terraform/lambda_job_submit.tf | 1 + terraform/lambda_refresh_cache_logging.tf | 1 + 7 files changed, 7 insertions(+) diff --git a/terraform/lambda_batch_events.tf b/terraform/lambda_batch_events.tf index 8eb5bbd5..568e390b 100644 --- a/terraform/lambda_batch_events.tf +++ b/terraform/lambda_batch_events.tf @@ -8,6 +8,7 @@ module "calcloud_lambda_batchEvents" { runtime = "python3.6" publish = false timeout = 900 + cloudwatch_logs_retention_in_days = 30 source_path = [ { diff --git a/terraform/lambda_blackboard.tf b/terraform/lambda_blackboard.tf index 3e12e8d6..6c43d3c5 100644 --- a/terraform/lambda_blackboard.tf +++ b/terraform/lambda_blackboard.tf @@ -8,6 +8,7 @@ module "calcloud_lambda_blackboard" { runtime = "python3.6" publish = false timeout = 300 + cloudwatch_logs_retention_in_days = 30 source_path = [ { diff --git a/terraform/lambda_broadcast.tf b/terraform/lambda_broadcast.tf index f8874034..83973cca 100644 --- a/terraform/lambda_broadcast.tf +++ b/terraform/lambda_broadcast.tf @@ -8,6 +8,7 @@ module "calcloud_lambda_broadcast" { runtime = "python3.6" publish = false timeout = 300 + cloudwatch_logs_retention_in_days = 30 source_path = [ { diff --git a/terraform/lambda_job_delete.tf b/terraform/lambda_job_delete.tf index 058efb9b..e332a123 100644 --- a/terraform/lambda_job_delete.tf +++ b/terraform/lambda_job_delete.tf @@ -8,6 +8,7 @@ module "calcloud_lambda_deleteJob" { runtime = "python3.6" publish = false timeout = 900 + cloudwatch_logs_retention_in_days = 30 source_path = [ { diff --git a/terraform/lambda_job_rescue.tf b/terraform/lambda_job_rescue.tf index a3eaa2ae..43e3bb90 100644 --- a/terraform/lambda_job_rescue.tf +++ b/terraform/lambda_job_rescue.tf @@ -8,6 +8,7 @@ module "calcloud_lambda_rescueJob" { runtime = "python3.6" publish = false timeout = 300 + cloudwatch_logs_retention_in_days = 30 source_path = [ { diff --git a/terraform/lambda_job_submit.tf b/terraform/lambda_job_submit.tf index fdb32d3d..a910e87f 100644 --- a/terraform/lambda_job_submit.tf +++ b/terraform/lambda_job_submit.tf @@ -8,6 +8,7 @@ module "calcloud_lambda_submit" { runtime = "python3.6" publish = false timeout = 30 + cloudwatch_logs_retention_in_days = 30 source_path = [ { diff --git a/terraform/lambda_refresh_cache_logging.tf b/terraform/lambda_refresh_cache_logging.tf index 6be82a30..2372fc47 100644 --- a/terraform/lambda_refresh_cache_logging.tf +++ b/terraform/lambda_refresh_cache_logging.tf @@ -8,6 +8,7 @@ module "calcloud_lambda_refreshCache" { runtime = "python3.6" publish = false timeout = 900 + cloudwatch_logs_retention_in_days = 30 source_path = [ {