Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

KevFinn's avatar
Level 10

AWS Elasticsearch Uses Port 80

I'd spare everyone a weekend's worth of work and let you know that Amazon Elasticsearch Service operates on port 80, not Elasticsearch's default port of 9200. So if you're using Laravel Scout's Elasticsearch driver in conjunction with AWS , be sure to set this in your .env file:

SCOUT_DRIVER=elasticsearch
ELASTICSEARCH_INDEX=laravel
ELASTICSEARCH_HOST=search-your-domain-2fkdsxsd32xfb5as5kcfublqjbla.us-west-2.es.amazonaws.com:80

It's the ":80" at the end that counts. I'm hoping this post gets indexed by Google so any search on Laravel Scout AWS Elasticsearch solves a huge headache for people out there. I could have used it.

0 likes
3 replies

Please or to participate in this conversation.