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
gefragt vor einem Jahr715 Aufrufe
1 Antwort
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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen