From ea884dc7504e9664a886ebe4818a10706b2511af Mon Sep 17 00:00:00 2001 From: Yousan_O Date: Fri, 7 Jun 2024 17:58:20 +0900 Subject: [PATCH 1/2] Fix healthy HTTP status code for ALB checking --- lib/decidim-stack.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/decidim-stack.ts b/lib/decidim-stack.ts index ed9e08d..d4e425c 100644 --- a/lib/decidim-stack.ts +++ b/lib/decidim-stack.ts @@ -330,7 +330,7 @@ export class DecidimStack extends cdk.Stack { port: '80', path: '/', protocol: elbv2.Protocol.HTTP, - healthyHttpCodes: '301', + healthyHttpCodes: '301,302', }, targets: [ecsService], targetGroupName: `${ props.stage }-${ props.serviceName }-TargetGroup`, From 7680c79d450060f4822bcf0636b54a2156a62131 Mon Sep 17 00:00:00 2001 From: Yousan_O Date: Mon, 10 Jun 2024 17:24:13 +0900 Subject: [PATCH 2/2] refactor: Add 302 http status code to snapshot --- test/__snapshots__/decidim-cfj-cdk.test.ts.snap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/__snapshots__/decidim-cfj-cdk.test.ts.snap b/test/__snapshots__/decidim-cfj-cdk.test.ts.snap index f22f542..865ebb1 100644 --- a/test/__snapshots__/decidim-cfj-cdk.test.ts.snap +++ b/test/__snapshots__/decidim-cfj-cdk.test.ts.snap @@ -1080,7 +1080,7 @@ exports[`DecidimStack Created 1`] = ` "HealthCheckPort": "80", "HealthCheckProtocol": "HTTP", "Matcher": { - "HttpCode": "301", + "HttpCode": "301,302", }, "Name": "staging-decidim-TargetGroup", "Port": 80,