# Proper setup for ElasticSearch on EC2 and the app on Heroku?

**URL:** <https://discuss.elastic.co/t/proper-setup-for-elasticsearch-on-ec2-and-the-app-on-heroku/6475>\
**Category:** Elasticsearch\
**Created:** [January 24, 2012, 6:20am UTC](https://discuss.elastic.co/t/proper-setup-for-elasticsearch-on-ec2-and-the-app-on-heroku/6475 "2012-01-24T06:20:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chance](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chance/32/88046_2.png) [@Chance](https://discuss.elastic.co/u/Chance)\
**Post date:** [January 24, 2012, 6:20am UTC](https://discuss.elastic.co/t/proper-setup-for-elasticsearch-on-ec2-and-the-app-on-heroku/6475/1 "2012-01-24T06:20:13Z")

</div>

I'm having trouble trying to identify the proper way to handle Heroku

- ES on EC2. I'm not seeing a mechanism for securing the data and  
because it's Heroku, I can't poke specific holes in the instance just  
for the server (non static IP).

Has anyone successfully done this? How did you do it or how would you  
go about it?

Thanks,  
Chance

---

<div class="post-metadata">

**Author:** ![Karussell1](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Karussell1](https://discuss.elastic.co/u/Karussell1)\
**Post date:** [January 24, 2012, 10:02am UTC](https://discuss.elastic.co/t/proper-setup-for-elasticsearch-on-ec2-and-the-app-on-heroku/6475/2 "2012-01-24T10:02:34Z")

</div>

Maybe that helps?

> <https://stackoverflow.com/questions/4960298/how-to-secure-an-internet-facing-elastic-search-implementation-in-a-shared-hosti>

Peter.

On 24 Jan., 07:20, Chance [chance...@gmail.com](mailto:chance...@gmail.com) wrote:

> I'm having trouble trying to identify the proper way to handle Heroku
> 
> - ES on EC2. I'm not seeing a mechanism for securing the data and  
> because it's Heroku, I can't poke specific holes in the instance just  
> for the server (non static IP).
> 
> Has anyone successfully done this? How did you do it or how would you  
> go about it?
> 
> Thanks,  
> Chance

---

<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:** [July 6, 2017, 3:41am UTC](https://discuss.elastic.co/t/proper-setup-for-elasticsearch-on-ec2-and-the-app-on-heroku/6475/3 "2017-07-06T03:41:42Z")

</div>


