From ccf4b14e2b43176f283c177ec15ba6ffb024d643 Mon Sep 17 00:00:00 2001 From: Maciej Matysiak <103054339+mmgovuk@users.noreply.github.com> Date: Tue, 17 Dec 2024 16:26:56 +0000 Subject: [PATCH] CC-3020: Updated the Lambda function code. --- .../ccms-ebs/application_variables.json | 6 +++--- .../ccms-ebs/lambda/certificate_monitor.zip | Bin 1673 -> 3207 bytes 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/terraform/environments/ccms-ebs/application_variables.json b/terraform/environments/ccms-ebs/application_variables.json index 8817e5883a5..abc328aa51b 100644 --- a/terraform/environments/ccms-ebs/application_variables.json +++ b/terraform/environments/ccms-ebs/application_variables.json @@ -102,7 +102,7 @@ "s3_lifecycle_days_transition_noncurrent_glacier": 365, "s3_lifecycle_days_transition_noncurrent_standard": 90, "certificate_expiry_days": 333, - "certificate_monitor_email": "maciej.matysiak@digital.justice.gov.uk" + "certificate_monitor_email": "ccms-ebs-nonprod-moni-aaaajv4v2trhfezlzkd5sevpsm@moj.org.slack.com" }, "test": { "short_env": "tst", @@ -202,7 +202,7 @@ "s3_lifecycle_days_transition_noncurrent_glacier": 365, "s3_lifecycle_days_transition_noncurrent_standard": 90, "certificate_expiry_days": 45, - "certificate_monitor_email": "maciej.matysiak@digital.justice.gov.uk" + "certificate_monitor_email": "ccms-ebs-nonprod-moni-aaaajv4v2trhfezlzkd5sevpsm@moj.org.slack.com" }, "preproduction": { "short_env": "prep", @@ -302,7 +302,7 @@ "s3_lifecycle_days_transition_noncurrent_glacier": 365, "s3_lifecycle_days_transition_noncurrent_standard": 90, "certificate_expiry_days": 45, - "certificate_monitor_email": "maciej.matysiak@digital.justice.gov.uk" + "certificate_monitor_email": "ccms-ebs-nonprod-moni-aaaajv4v2trhfezlzkd5sevpsm@moj.org.slack.com" }, "production": { "short_env": "prod", diff --git a/terraform/environments/ccms-ebs/lambda/certificate_monitor.zip b/terraform/environments/ccms-ebs/lambda/certificate_monitor.zip index 4ad0df5374460d6ad615fae313665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