From dde50df1a1e017890a0be09f87cd59cdf049f9bf Mon Sep 17 00:00:00 2001 From: Teemu Erkkola Date: Mon, 25 Sep 2023 13:39:26 +0300 Subject: [PATCH] AV-1959: Use suffix check instead of regexp --- cdk/lib/monitoring-stack.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdk/lib/monitoring-stack.ts b/cdk/lib/monitoring-stack.ts index dc54914db9..ea194523b4 100644 --- a/cdk/lib/monitoring-stack.ts +++ b/cdk/lib/monitoring-stack.ts @@ -26,7 +26,7 @@ export class MonitoringStack extends Stack { eventPattern: { source: ['aws.ecs'], detail: { - message: assertions.Match.stringLikeRegexp('service [^ ]+ task [0-9a-f]+ failed container health checks.') + message: [{suffix: 'failed container health checks.'}] } }, targets: [sendToDeveloperZulipTarget, taskHealthCheckFailLogGroupTarget],