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

1 Risposta
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
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande