Magento 2 integration with aws elasticsearch service

September 28, 2021 . 1 MIN READ

Magento 2 integration with AWS Elasticsearch service

I was able to make the connection by making Nginx changes. I created a configuration file for nginx to proxy messages to my AWS ES.

So in my /etc/nginx/conf.d/ a .conf file with the following content:

server {
    listen 8080;
    location / {
            proxy_pass https://myAwsElasticsearchServiceEndpoint.com;
    }
}

Then in

“stores configuration > Catalog > Catalog > Catalog Search”

I configured:

  • Search Engine: Elasticsearch 6.0+
  • Elasticsearch Server Hostname: https://myAwsElasticsearchServiceEndpoint.com
  • Elasticsearch Server Port: 8080

A successfull connection was made, and running reindex I could comprove that data was sent to AWS ES.

If someone knows a better way or why this way is not good please let me know!

Thanks!

Resource: https://magento.stackexchange.com/questions/285826/magento-2-integration-with-aws-elasticsearch-service

Read more: https://www.emizentech.com/blog/magento-2-4-with-elasticsearch-complete-guide.html

https://www.cloudways.com/blog/configuring-elasticsearch-magento/

https://community.magento.com/t5/Installing-Magento-2-x/magento2-cloud-installation-guide-with-AWS-Elasticsearch/td-p/475320

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *