# Connection among my ECS infrastructure and my Elastic Cloud

**URL:** <https://discuss.elastic.co/t/connection-among-my-ecs-infrastructure-and-my-elastic-cloud/270684>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [April 20, 2021, 10:02am UTC](https://discuss.elastic.co/t/connection-among-my-ecs-infrastructure-and-my-elastic-cloud/270684 "2021-04-20T10:02:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmoreram](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mmoreram/32/87391_2.png) [@mmoreram](https://discuss.elastic.co/u/mmoreram)\
**Post date:** [April 20, 2021, 10:02am UTC](https://discuss.elastic.co/t/connection-among-my-ecs-infrastructure-and-my-elastic-cloud/270684/1 "2021-04-20T10:02:11Z")

</div>

Hi there!

I setup my infrastructure on top of ECS, but I placed the Elasticsearch cloud in the Elastic Cloud service. I'm having connection between both, so that's great, but I'm having a huge ping from one to the other (around 40ms) which is insane.

Is there a way so I can go from one VPC to the other without reaching internet? I mean, internally. I tried the private link, but I'm not sure if it's exactly that (I didn't success).

Thanks!

---

<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:** [May 4, 2021, 10:02am UTC](https://discuss.elastic.co/t/connection-among-my-ecs-infrastructure-and-my-elastic-cloud/270684/2 "2021-05-04T10:02:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![xeraa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xeraa/32/48181_2.png) [@xeraa](https://discuss.elastic.co/u/xeraa)\
**Post date:** [May 11, 2021, 4:49pm UTC](https://discuss.elastic.co/t/connection-among-my-ecs-infrastructure-and-my-elastic-cloud/270684/3 "2021-05-11T16:49:12Z")

</div>

This feels more like an AWS question than Elastic specific, so there might be better places to get an answer.

In general, I'm surprised by that high ping. But for extra security, VPC peering is the better approach anyway, so I'd give that a try. [https://www.reddit.com/r/aws/comments/emfj0x/vpc\_peering\_latency\_for\_dbs/](https://www.reddit.com/r/aws/comments/emfj0x/vpc_peering_latency_for_dbs/) discussing a relatively similar setup (EKS instead of ECS, but the VPC setup should be similar) reports latency of 1ms or so with VPC peering.

Just to be sure: This is in the same region, right?

---

<div class="post-metadata">

**Author:** ![xeraa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xeraa/32/48181_2.png) [@xeraa](https://discuss.elastic.co/u/xeraa)\
**Post date:** [May 14, 2021, 1:27pm UTC](https://discuss.elastic.co/t/connection-among-my-ecs-infrastructure-and-my-elastic-cloud/270684/4 "2021-05-14T13:27:07Z")

</div>



---

<div class="post-metadata">

**Author:** ![mmoreram](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mmoreram/32/87391_2.png) [@mmoreram](https://discuss.elastic.co/u/mmoreram)\
**Post date:** [May 14, 2021, 1:36pm UTC](https://discuss.elastic.co/t/connection-among-my-ecs-infrastructure-and-my-elastic-cloud/270684/5 "2021-05-14T13:36:43Z")

</div>

In fact, it's probably about the way I'm reaching elasticsearch from my EC2.  
I opened a case to see if there is a way to reach the VPC with a private ELB endpoint, so I can avoid the public one.

---

<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:** [November 4, 2022, 8:29am UTC](https://discuss.elastic.co/t/connection-among-my-ecs-infrastructure-and-my-elastic-cloud/270684/6 "2022-11-04T08:29:11Z")

</div>


