From d7c6d446fd5bed2b69e9620cd302bdcf12134cec Mon Sep 17 00:00:00 2001 From: Pat Heard Date: Thu, 16 Nov 2023 12:52:45 -0500 Subject: [PATCH] fix: ignore tranlsation file copy errors (#1529) WordPress is throwing errors for French tranlsation files that do not exist. These can be ignored as they are expected since we're not using those plugins and themes. --- infrastructure/terragrunt/aws/alarms/locals.tf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/infrastructure/terragrunt/aws/alarms/locals.tf b/infrastructure/terragrunt/aws/alarms/locals.tf index 7484593b6..2c1d7d5f8 100644 --- a/infrastructure/terragrunt/aws/alarms/locals.tf +++ b/infrastructure/terragrunt/aws/alarms/locals.tf @@ -20,6 +20,7 @@ locals { "HTTP/1.1\\\" 403", "HTTP/1.1\\\" 404", "Undefined constant", + "fr_FR.po", ] wordpress_database_errors = [ "database error", @@ -30,6 +31,8 @@ locals { ] wordpress_warnings_skip = [ "Undefined array key*c3-cloudfront-clear-cache", + "fr_FR.po", + "chmod()", ] wordpress_error_metric_pattern = "[(w1=\"*${join("*\" || w1=\"*", local.wordpress_errors)}*\") && w1!=\"*${join("*\" && w1!=\"*", local.wordpress_errors_skip)}*\"]" wordpress_database_error_metric_pattern = "[(w1=\"*${join("*\" || w1=\"*", local.wordpress_database_errors)}*\")]"