Is there anyway to create a friendly URL for AWS Elasticsearch domain url?
Asked Answered
R

6

8

I tried creating a Route 53 alias record but that didn't work.

Rhapsodist answered 3/6, 2016 at 17:55 Comment(4)
A CNAME mapping should work. its working for me.Buonaparte
Is it that you are not able to load kibana or are you not able to push logs?Buonaparte
@Buonaparte the problem with a CNAME is that you still need the _plugin/kibana path.Bonina
Another problem with CNAME is that if using SSL, the certificate won't match the domain. See for example #48157394Arezzini
A
6

It is possible as of November 2020:

  1. Choose Edit domain.
  2. To add a Custom endpoint, select the Enable custom endpoint check box.
  3. For Custom hostname, enter your preferred custom endpoint hostname. Your custom endpoint hostname should be a fully qualified domain name (FQDN), such as www.yourdomain.com or example.yourdomain.com.
  4. For AWS certificate, choose the SSL certificate that you want to use for your domain.

https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-customendpoint.html

Auctioneer answered 7/11, 2020 at 18:27 Comment(0)
T
2

We don’t support custom SSL certificates, which means that a custom CNAME for an Elasticsearch Service endpoint such as mycluster.mycompanyname.example also is not supported.

Ref: https://www.elastic.co/guide/en/cloud/current/ec-faq.html#faq-dns

Thomasthomasa answered 11/2, 2020 at 19:0 Comment(2)
Link is broken.Lapidify
could you please update the link to the new one: elastic.co/guide/en/cloud/current/ec-faq-technical.html#faq-sslDraughtsman
D
1

It is still not possible on September 2020:

Can I use a Custom SSL certificate?

We don’t support custom SSL certificates, which means that a custom CNAME for an Elasticsearch Service endpoint such as mycluster.mycompanyname.com also is not supported.

source

Draughtsman answered 21/9, 2020 at 13:4 Comment(1)
This is perfect.Everything
K
0

Create a wild card certificate like *.youdomain.com (for subdomain setup) or a domain certificate (e.g yourdomain.com) if you have a domain that you want to point to this cluster in ACM.

Assuming you are going with a subdomain setup. You can follow similar steps for domain setup.

While creating the ES cluster select the custom domain option and add Custom hostname as your subdomain (e.g: elasticsearch.yourdomain.com) And for certificate chose wildcard certificate from ACM. Or you can edit your cluster and do the same.

If you have cogito auth for kibana You will need also need to follow these steps:

  1. Go to Cognito pool
  2. Under App integration > App client settings
  3. Update Sign-in and sign-out URLs according to your subdomain.
Keller answered 28/6, 2021 at 6:13 Comment(0)
D
0

Adding more information to the answer by yurez's.

The following step is also important:

After you enable a custom endpoint for your OpenSearch Service domain, you must create a CNAME mapping in Amazon Route 53 (or your preferred DNS service provider) to route traffic to the custom endpoint and its subdomains. Create the CNAME from the custom endpoint (the name of the record e.g., example.yourdomain.com) to the auto-generated endpoint (the value of the record e.g., vpc-1b1b1b1b1b1b1b1b1b1b1b1b1.us-east-1.es.amazonaws.com). Without this mapping, your custom endpoint won't work.

Reference: Creating a custom endpoint for Amazon OpenSearch Service

Dentilabial answered 21/1, 2022 at 13:14 Comment(0)
D
-3

You can use route 53 service of AWS, Create record with CNAME and put value as some friendly name like kibana.logs.com or whatever domain you owned.

Dewyeyed answered 18/2, 2019 at 7:8 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.