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
asked a year ago689 views
1 Answer
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
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions