Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS: Placing an Application Load Balance in front of Elasticsearch Managed Service

I am creating an elasticsearch managed service on AWS;

When creating the service, no explicit instances are created and you are just given a url/endpoint;

I want to expose the service via an ALB, but when creating the corresponding target groups, I am forced to choose between instance and ip, while the only thing I have is an endpoint (url);

How to go about this?

like image 961
pkaramol Avatar asked Sep 24 '18 07:09

pkaramol


1 Answers

I don't believe this is currently possible (3rd Jun 2019). @michail_c mentioned the redirect option but unfortunately that won't help as it just returns a redirect response to a client, but the ES domain isn't public (assuming a VPC domain).

The easiest thing to do would be setting up an EC2 instance to proxy requests. I've been playing with using lambda as a proxy (but still have some kinks to work out with that approach)

like image 76
Anntoin Wilkinson Avatar answered Oct 05 '22 13:10

Anntoin Wilkinson