I tried creating a Route 53 alias record but that didn't work.
It is possible as of November 2020:
- Choose Edit domain.
- To add a Custom endpoint, select the Enable custom endpoint check box.
- 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.
- 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
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
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.
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:
- Go to Cognito pool
- Under App integration > App client settings
- Update Sign-in and sign-out URLs according to your subdomain.
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
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.
© 2022 - 2024 — McMap. All rights reserved.
_plugin/kibana
path. – Bonina