# Unable to connect local kibana to remote elasticsearch running in AWS VPC

**URL:** https://discuss.elastic.co/t/unable-to-connect-local-kibana-to-remote-elasticsearch-running-in-aws-vpc/180489
**Category:** Elasticsearch
**Created:** [May 10, 2019, 6:13am UTC](https://discuss.elastic.co/t/unable-to-connect-local-kibana-to-remote-elasticsearch-running-in-aws-vpc/180489 "2019-05-10T06:13:37Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![kpiyush](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kpiyush/32/45904_2.png) [@kpiyush](https://discuss.elastic.co/u/kpiyush)
#### Post date: [May 10, 2019, 6:13am UTC](https://discuss.elastic.co/t/unable-to-connect-local-kibana-to-remote-elasticsearch-running-in-aws-vpc/180489/1 "2019-05-10T06:13:37Z")

</div>

Hi,

I am running elasticsearch in vpc using amazon elasticsearch service. I used the following article to access elasticsearch locally.

> **[How To: Access Your AWS VPC-based Elasticsearch Cluster Locally - Jeremy Daly](https://www.jeremydaly.com/access-aws-vpc-based-elasticsearch-cluster-locally/)**
>
> AWS recently announced that their Elasticsearch Service now supports VPC. Learn how to access your secure clusters from your local development machine.

Using the article, I am able to access ES using [https://localhost:9200](https://localhost:9200) using curl -k. But I want to see the data through kibana which is running locally.  
I tweaked the following properties in my local kibana.yml:

elasticsearch.url: "[https://localhost:9200](https://localhost:9200)"  
elasticsearch.ssl.certificateAuthorities: "path to pem file"  
elasticsearch.ssl.verificationMode: none

Still kibana is not able to detect elasticsearch. Is there any way to access data through kibana? Which properties are needed to change for that?

Thanks

---

<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: [May 10, 2019, 6:42am UTC](https://discuss.elastic.co/t/unable-to-connect-local-kibana-to-remote-elasticsearch-running-in-aws-vpc/180489/2 "2019-05-10T06:42:44Z")

</div>

If Kibana is running locally it can not access to localhost:9200. You need to change that to the public address of your elasticsearch instance I guess.

BTW did you look at [https://www.elastic.co/cloud](https://www.elastic.co/cloud) and [https://aws.amazon.com/marketplace/pp/B01N6YCISK](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, APM, Logs UI, Infra UI and what is coming next 🙂 ...

---

<div class="post-metadata">

### Author: ![martinr\_ubi](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@martinr\_ubi](https://discuss.elastic.co/u/martinr_ubi)
#### Post date: [May 10, 2019, 9:28am UTC](https://discuss.elastic.co/t/unable-to-connect-local-kibana-to-remote-elasticsearch-running-in-aws-vpc/180489/3 "2019-05-10T09:28:12Z")

</div>

> [@kpiyush](#):
>
> Still kibana is not able to detect elasticsearch.

Why aren't you sharing the Kibana logs with the errors?  
Which Kibana is it, the default distribution or the OSS distribution?  
[OSS](https://www.elastic.co/fr/downloads/kibana-oss) VS. [default](https://www.elastic.co/downloads/kibana)

In pure unverified theory your setup could work because you have the verification\_mode: none for SSL as the certificate won't match. (The pem is superfluous in my opinion)  
But AWS expect you'll use their managed Kibana that comes with the AWS ES Service so it's possible something doesn't work but without the Kibana logs you're not sharing enough information.

Why are you trying to connect a local Kibana to AWS ES instead of using the AWS ES Kibana? What's wrong or not working with the one that comes with the AWS service?

I'd also recommend using the Elastic Cloud or installing a licensed default distribution of Elastic on EC2 or ECS to have more features.

P.S.  
@dadoonet , his localhost:9200 is a tunnel to his AWS ES endpoint located in his AWS VPC. Which explains the "connect to a remote endpoint through localhost" apparent lack of logic. Like if ES was in another VLAN you could only access through SSH tunnel via a jump server.

---

<div class="post-metadata">

### Author: ![kpiyush](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kpiyush/32/45904_2.png) [@kpiyush](https://discuss.elastic.co/u/kpiyush)
#### Post date: [May 10, 2019, 1:58pm UTC](https://discuss.elastic.co/t/unable-to-connect-local-kibana-to-remote-elasticsearch-running-in-aws-vpc/180489/4 "2019-05-10T13:58:29Z")

</div>

So, If I want to use aws kibana, I have to do ssh tunnel like I did for elasticsearch?

---

<div class="post-metadata">

### Author: ![kpiyush](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kpiyush/32/45904_2.png) [@kpiyush](https://discuss.elastic.co/u/kpiyush)
#### Post date: [May 10, 2019, 2:05pm UTC](https://discuss.elastic.co/t/unable-to-connect-local-kibana-to-remote-elasticsearch-running-in-aws-vpc/180489/5 "2019-05-10T14:05:32Z")

</div>

Never mind, I am able to connect to kibana in aws. It was simple. I just had to go to `https://localhost:9200/_plugin/kibana`.  
Thanks for the reply btw.

---

<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: [June 7, 2019, 2:11pm UTC](https://discuss.elastic.co/t/unable-to-connect-local-kibana-to-remote-elasticsearch-running-in-aws-vpc/180489/6 "2019-06-07T14:11:08Z")

</div>

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