How do I expose ElasticSearch on an AWS instance? How do I expose ElasticSearch on an AWS instance? elasticsearch elasticsearch

How do I expose ElasticSearch on an AWS instance?


In your EC2 dashboard, on the left-hand menu, there is 'Security Group'. Find which 'Security Group' your instance uses (you can find it in the instance description).

Select the security group, select 'Inbound' tab, then click 'Edit'. Add 'Custom TCP' rule, set port to be 9200 and set Source to be 'Anywhere'.

Leaving port 9200 open to world "Source to be 'Anywhere'" is not recommended. You can open this port for the subnet or IP of your EC2 instances from which you(your App) want to access elasticsearch.

Security Group