hop of those help? Make sure your security group has the proper ports opened up. In the EC2 console, go to Security Groups (on the left side of the page). Find the security group of the EC2 instance. There is a tab called Inbound. Make sure you have a row with the type = SSH, protocol = TCP, port = 22, and source = 0.0.0.0/0
fixed the issue. Will look into that further I believe you are using the wrong service for what you are trying to do. The AWS service NAT Gateway is for routing outbound traffic from a private subnet to the internet. It does not route inbound requests.
I wish this help you Probably you are running with default settings where elasticsearch is only bound to localhost. Which means that no one else than localhost can actually connect to it. Read Important Settings section.