title: Elastic Transport client on AWS Managed ElasticSearch
body: <p>I am trying to use the AWS Managed ElasticSearch for my project.</p>
  <p>I have followed <a href="https://aws.amazon.com/blogs/aws/new-amazon-elasticsearch-service/" rel="nofollow noreferrer">https://aws.amazon.com/blogs/aws/new-amazon-elasticsearch-service/</a> and i am able to start an instance and which is successfull. But I am unable to connect to the same instance from my service using elasticsearch transport client.</p>
  <p>I know transport client supposed to connect on to the 9300 port, and that port i am unable to turn on through the aws console.</p>
  <p>Here is the code that I am using to connect, which is successfully able to connect to my elastic search setup on an ec2 machine on the 9300 port.</p>
  <pre><code>ImmutableSettings.Builder settings = ImmutableSettings.settingsBuilder();
                      settings.put(&quot;cluster.name&quot;, &quot;my-cluster-name&quot;)
                              .put(&quot;client.transport.nodes_sampler_interval&quot;, &quot;15s&quot;)
                              .put(&quot;client.transport.ping_timeout&quot;, &quot;15s&quot;)
                              .put(&quot;client.transport.sniff&quot;, true)
                              .put(&quot;client.transport.ignore_cluster_name&quot;, false).build();
                      client = new TransportClient(settings)
                          .addTransportAddress(
                              new InetSocketTransportAddress(
                                          env.getProperty(&quot;elastic-host-url-provided-by-aws&quot;,80)
                              ));
  </code></pre>
  <p>I am getting the Exception</p>
  <blockquote>
  <p>org.elasticsearch.client.transport.NoNodeAvailableException: None of
  the configured nodes are available: []    at
  org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:305)
  at
  org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:200)
  at
  org.elasticsearch.client.transport.support.InternalTransportClient.execute(InternalTransportClient.java:106)
  at
  org.elasticsearch.client.support.AbstractClient.index(AbstractClient.java:98)</p>
  </blockquote>
  <p>I suspect that this error is since I am connecting the TransportClient over the HTTP port. But I don't know, what is the TCP port for aws managed elastic search instance. I searched in aws documents, and i couldnt find any. If some have used TransportClient to connect with Amazon ES let me know.</p>
  <blockquote>
  <p>NB: I have verified that the elasticsearch java jar version that I am
  using is as same as same with the server. And from my system I am able
  to access the Kibana and the ES HTTP PORTS with out any issue.</p>
  </blockquote>