Search code examples
amazon-web-servicesamazon-route53cnameopensearch

How create a CNAME mapping in Amazon Route 53 for custom endpoint elasticsearch in aws?


To make the custom endpoint work. On route 53 , I alias for which resource in aws? And what kind of route.And if I use CNAME do I have to use subdomain?

"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) to the auto-generated endpoint (the value of the record). Without this mapping, your custom endpoint won't work. For steps to create this mapping in Route 53, see Configuring DNS routing for a new domain and Creating a hosted zone for a subdomain. For other providers, consult their documentation." aws documentation

enter image description here


Solution

  • This works for me.

    I create CNAME with the same name of custom endpoint and point to auto-generated endpoint.

    enter image description here