I have installed ElasticSearch on an AWS instance and successfully tested it from another AWS instance. I want to use a .Net app on my remote machine to load my data to ElasticSearch.
How do I configure my AWS instance to allow connectivity over TCP port 9200 from my remote machine? I have verified that iptables is off and the ES process is bound to 0.0.0.0.
Thanks in advance.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With