# Elasticsearch-php + AWS Elasticsearch

**URL:** <https://discuss.elastic.co/t/elasticsearch-php-aws-elasticsearch/133419>\
**Category:** Elasticsearch\
**Created:** [May 27, 2018, 9:45am UTC](https://discuss.elastic.co/t/elasticsearch-php-aws-elasticsearch/133419 "2018-05-27T09:45:36Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![vojtamares](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vojtamares/32/32074_2.png) [@vojtamares](https://discuss.elastic.co/u/vojtamares)\
**Post date:** [May 27, 2018, 9:45am UTC](https://discuss.elastic.co/t/elasticsearch-php-aws-elasticsearch/133419/1 "2018-05-27T09:45:37Z")

</div>

Hi!

I am considering moving our elasticsearch to AWS (it is much easier to maintain - since I don't have to maintain it at all).

I have a PHP application and for connection to elastic I am using [elastic/elasticsearch-php](https://github.com/elastic/elasticsearch-php), but now I have not found a way to connect to AWS without using 3rd party library for PHP which is using AWS-SDK. Can I do it without it?

I have configured restricted access from the dev-server IP.

Yes, I did tried entrypoint URL and entrypoint URL + /

Is it possible to do it only with configuration of elastic's PHP lib or do I have to use AWS-SDK?

Thank you

---

<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 28, 2018, 4:43am UTC](https://discuss.elastic.co/t/elasticsearch-php-aws-elasticsearch/133419/2 "2018-05-28T04:43:33Z")

</div>

Not answering but 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 the only way to have access to X-Pack. Think about what is there yet like Security, Monitoring, Reporting and what is coming like Canvas, SQL...

---

<div class="post-metadata">

**Author:** ![vojtamares](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vojtamares/32/32074_2.png) [@vojtamares](https://discuss.elastic.co/u/vojtamares)\
**Post date:** [June 8, 2018, 11:06pm UTC](https://discuss.elastic.co/t/elasticsearch-php-aws-elasticsearch/133419/3 "2018-06-08T23:06:11Z")

</div>

Well, It may solve the issue with ES. But it is pricy solution. Small instance of ES can handle it same and I can even have multiple of them (cheper ones) and it would be good.

Since I use it just for web searches, I am not interested in Kibana, etc... Yes, it is nice tool. But not must-have I would say. curl is powerfull either and few scripts does health-check on self-hosted ES the same as any other solution 🙂

---

<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:** [June 9, 2018, 6:08am UTC](https://discuss.elastic.co/t/elasticsearch-php-aws-elasticsearch/133419/4 "2018-06-09T06:08:19Z")

</div>

So what did you mean by

> I am considering moving our elasticsearch to AWS (it is much easier to maintain - since I don't have to maintain it at all).

Do you want to run elasticsearch on ec2 manually?

---

<div class="post-metadata">

**Author:** ![vojtamares](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vojtamares/32/32074_2.png) [@vojtamares](https://discuss.elastic.co/u/vojtamares)\
**Post date:** [June 9, 2018, 6:47am UTC](https://discuss.elastic.co/t/elasticsearch-php-aws-elasticsearch/133419/5 "2018-06-09T06:47:20Z")

</div>

No, I want to use AWS Elasticsearch service ([https://aws.amazon.com/elasticsearch-service/](https://aws.amazon.com/elasticsearch-service/))

---

<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:** [June 9, 2018, 7:05am UTC](https://discuss.elastic.co/t/elasticsearch-php-aws-elasticsearch/133419/6 "2018-06-09T07:05:03Z")

</div>

Which options did you choose?

---

<div class="post-metadata">

**Author:** ![vojtamares](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vojtamares/32/32074_2.png) [@vojtamares](https://discuss.elastic.co/u/vojtamares)\
**Post date:** [June 11, 2018, 9:38am UTC](https://discuss.elastic.co/t/elasticsearch-php-aws-elasticsearch/133419/7 "2018-06-11T09:38:11Z")

</div>

Well, I wanted to use "t2.small.elasticsearch" at AWS. But my boss is afraid of AWS/Cloud. So we have our own instance on our server... I am not happy about the solution but I am not going to convict him why we should move to cloud. I got my answer already - "we do not have the data".

I don't know why he thinks that with VPS it is different... Nevermind.

---

<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:** [June 11, 2018, 9:59am UTC](https://discuss.elastic.co/t/elasticsearch-php-aws-elasticsearch/133419/8 "2018-06-11T09:59:07Z")

</div>

Haha. Sure that's a weird argument.

Note that you can use elastic cloud on premise as well with Elastic Cloud Enterprise but I'm not sure that's what your boss wants either.

IMHO [cloud.elastic.co](http://cloud.elastic.co) would better suit your needs but this is up to you (and your boss). 😉

Good luck.

---

<div class="post-metadata">

**Author:** ![vojtamares](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vojtamares/32/32074_2.png) [@vojtamares](https://discuss.elastic.co/u/vojtamares)\
**Post date:** [June 11, 2018, 10:35am UTC](https://discuss.elastic.co/t/elasticsearch-php-aws-elasticsearch/133419/9 "2018-06-11T10:35:07Z")

</div>

Thank you.

btw after deeper look AWS ES Service offers (almost!) the same as Elastic Cloud Enterprise (Kibana,etc...).

But I was thinking about AWS because I wanted to try it out. But I walked away with nothing.

I also wanted to move away from the VPS and move everything to cloud, I am not sure if it would be cheaper or not and I know it would add some additional steps to deployment and develeopment. So... yeah it has it's disadvantages - but these are here for the start, after you do it once, you will mostly know how to deal with any issues which may come up from deploy and dev.

I think that the biggest reason why yes is availability. AWS is the biggest cloud service (even if you combine size of Google Cloud and MS Azure) AWS is still bigger.

It has many great services with great already implemented monitoring for the whole app... I think it is just easy to go with it.

And in my opinion the API access to AWS vs SSH access to VPS are on the same level of accessibility, but AWS's S3 has more uptime than our VPS provider so far 😃

Anyway, thank you so much for your time and answers. 🙂 I have an other question but about different think so about that in different thread.

---

<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:** [June 11, 2018, 10:50am UTC](https://discuss.elastic.co/t/elasticsearch-php-aws-elasticsearch/133419/10 "2018-06-11T10:50:18Z")

</div>

> [@vojtamares](#):
>
> I think that the biggest reason why yes is availability. AWS is the biggest cloud service

I think that's one of the reason [cloud.elastic.co](http://cloud.elastic.co) actually runs from the beginning on AWS.  
Which is nice if you have other services running on AWS as you will be able to transfer data over the "local" network at no cost.

> Anyway, thank you so much for your time and answers. 🙂 I have an other question but about different think so about that in different thread.

Sure. We'll be happy to help.

---

<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 9, 2018, 10:50am UTC](https://discuss.elastic.co/t/elasticsearch-php-aws-elasticsearch/133419/11 "2018-07-09T10:50:24Z")

</div>

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