How to support multiple production ALB listeners with CodeDeploy Blue/Green deployments

0

Hi there,

I have a service (a simple NextJS website) deployed in ECS behind an ALB. The ALB routes both HTTP (port 80) and HTTPS (port 443) traffic to the tasks. This model works well when a single production listener is defined in the CodeDeploy Application Deployment Group definition, but I was wondering if there was a way of supporting more than one listener in the Application Deployment Group definition.

For now, I've set the second listener (Port 80) as the test listener port, and this works, but it does seem like a bit of a hack.

Appreciate any answers.

Kind regards

Erich

Erich
已提問 1 年前檢視次數 715 次
1 個回答
0

I managed to resolve this by adding a default redirect rule on the ALB to redirect HTTP traffic to HTTPS. This brings me back to a single production listener from the deployment perspective. That said, I'd still be interested in alternative solutions for my own knowledge development.

Erich
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南