Skip to content

Commit

Permalink
Merge pull request #43 from yousan/feat/42-fix-healthy-http-status-co…
Browse files Browse the repository at this point in the history
…de-for-alb

ALBのヘルスチェック用HTTPステータスコードで302を受け入れるように変更
  • Loading branch information
ayuki-joto authored Jun 14, 2024
2 parents 7e8e216 + 7680c79 commit 052946e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/decidim-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down
2 changes: 1 addition & 1 deletion test/__snapshots__/decidim-cfj-cdk.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ exports[`DecidimStack Created 1`] = `
"HealthCheckPort": "80",
"HealthCheckProtocol": "HTTP",
"Matcher": {
"HttpCode": "301",
"HttpCode": "301,302",
},
"Name": "staging-decidim-TargetGroup",
"Port": 80,
Expand Down

0 comments on commit 052946e

Please sign in to comment.