From d661ec6c08ff31348efb60df339c53565ed41ce2 Mon Sep 17 00:00:00 2001 From: sparta15 Date: Fri, 22 Jan 2021 15:57:53 +0100 Subject: [PATCH] fix: change alarm name for blue stack --- lib/blue-green-using-ecs-stack.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/blue-green-using-ecs-stack.ts b/lib/blue-green-using-ecs-stack.ts index 64086ba..c2cfb94 100644 --- a/lib/blue-green-using-ecs-stack.ts +++ b/lib/blue-green-using-ecs-stack.ts @@ -213,8 +213,8 @@ export class BlueGreenUsingEcsStack extends cdk.Stack { statistic: cloudWatch.Statistic.SUM, period: Duration.minutes(1) }); - const blueGroupAlarm = new cloudWatch.Alarm(this, "blue5xxErrors", { - alarmName: "Blue_5xx_Alarm", + const blueGroupAlarm = new cloudWatch.Alarm(this, "blue4xxErrors", { + alarmName: "Blue_4xx_Alarm", alarmDescription: "CloudWatch Alarm for the 4xx errors of Blue target group", metric: blue4xxMetric, threshold: 1,