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?

질문됨 2년 전932회 조회
3개 답변
0

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

답변함 2년 전
  • Hi, I'm currently having the same issue, but what Security Role did you have to change to get this working?

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

답변함 2년 전
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.

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠