By using AWS re:Post, you agree to the Terms of Use

How to configure elastic beanstalk environment with a load balancer to support blue/green deployments?

0

Hi! I've configured an environment in an elastic beanstalk application with an application load balancer so that I can configure a ssl certificate for that endpoint. The name of the load balancer is connected to my dns, which connects the hostname to this load balancer. However, as I've figured out now, this type of configuration does not support the blue/green deployment pattern, because creating a new environment will also create a new load balancer with a new host name. This would also require an update to my dns record - which I want to avoid.

I'm now searching for a load balancer in aws which I can connect to the ebs environment url so that the environment swapping mechanism will be possible. I've looked into a shared load balancer - which i.e. I can connect to an ebs environment. But that does not seem to be of help because swapping the environment url will not update the load balancer configuration (I assume, it doesn't let me select a url).

What aws load balancing service would allow me to simply point to an environment url and also support tls encryption?

3 Answers
0

I'm assuming you are not using Route53 for you DNS? Otherwise this is exactly what you can do with Blue/Green deployments and swapping environment URLs: https://docs.aws.amazon.com/whitepapers/latest/blue-green-deployments/swap-the-environment-of-an-elastic-beanstalk-application.html

answered 8 months ago
0

No, I'm not using Route53 - we have our own dns service and use a cname entry to connect the domain to the aws endpoint, in my case the name of the load balancer that the ebs environment created.

answered 8 months ago
0

Ok, after some more research I realised that I was missing a SecurityRole in my configuration. Thanks for your help!

answered 7 months 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