# ConfigurationError: Missing node(s)

**URL:** <https://discuss.elastic.co/t/configurationerror-missing-node-s/250841>\
**Category:** Elasticsearch\
**Created:** [October 2, 2020, 7:18pm UTC](https://discuss.elastic.co/t/configurationerror-missing-node-s/250841 "2020-10-02T19:18:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![glimmbo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/glimmbo/32/76589_2.png) [@glimmbo](https://discuss.elastic.co/u/glimmbo)\
**Post date:** [October 2, 2020, 7:18pm UTC](https://discuss.elastic.co/t/configurationerror-missing-node-s/250841/1 "2020-10-02T19:18:10Z")

</div>

I am using the JS client to connect to AWS Elasticsearch Service. With the setup:

```auto
import { Client, ClientOptions } from "@elastic/elasticsearch"

const {
  ES_AWS_ENDPOINT,
  ES_AWS_USER,
  ES_AWS_PASSWORD,
} = process.env

const options: ClientOptions = {
  node: ES_AWS_ENDPOINT,
  auth: {
    username: ES_AWS_USER,
    password: ES_AWS_PASSWORD,
  },
}

const client = new Client(options)

export default client

```

Which successfully connects from my local machine in development. When I run a build of the application with the same configuration, all requests from the application get the config error, saying I have no nodes declared. Is this method of connecting to Elasticsearch Service even supported? Why would it work locally and not from a build on an EC2 instance?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 3, 2020, 2:44am UTC](https://discuss.elastic.co/t/configurationerror-missing-node-s/250841/2 "2020-10-03T02:44:37Z")

</div>

We don't support this service here so it might be hard to get information on that.

BTW did you look at [Cloud by Elastic](https://www.elastic.co/cloud), also available if needed from [AWS Marketplace](https://aws.amazon.com/marketplace/pp/B01N6YCISK) ?

Cloud by elastic is one way to have access to **all features** , all managed by us. Think about what is there yet like Security, Monitoring, Reporting, SQL, Canvas, Maps UI, Alerting and built-in solutions named [Observability](https://www.elastic.co/observability), [Security](https://www.elastic.co/security), [Enterprise Search](https://www.elastic.co/enterprise-search) and what is coming next 🙂 ...

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 31, 2020, 2:44am UTC](https://discuss.elastic.co/t/configurationerror-missing-node-s/250841/3 "2020-10-31T02:44:50Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
