# Indexing documents

**URL:** <https://discuss.elastic.co/t/indexing-documents/161655>\
**Category:** Elasticsearch\
**Created:** [December 20, 2018, 10:10am UTC](https://discuss.elastic.co/t/indexing-documents/161655 "2018-12-20T10:10:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Apul\_Kudale](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@Apul\_Kudale](https://discuss.elastic.co/u/Apul_Kudale)\
**Post date:** [December 20, 2018, 10:10am UTC](https://discuss.elastic.co/t/indexing-documents/161655/1 "2018-12-20T10:10:13Z")

</div>

i have created elasticsearch service on amazon s3  
and have server on ec2  
So want to create indexing on elasticsearch service using php from my ec2 server.  
its just working fine on curl  
bt not on php

i did sethosts endpoint of elasticsearch service  
$client ClientBuilder::create()-\>setHosts([  
// '[https://searchxxxxxxxxxxc3hyobm.ap-south-1.es.amazonaws.com](https://searchxxxxxxxxxxc3hyobm.ap-south-1.es.amazonaws.com)'  
// ])-\>build();  
it says no cluster found!  
bt didnt help!  
Please Kindly help me !  
sry for my bad english

---

<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:** [December 20, 2018, 10:38am UTC](https://discuss.elastic.co/t/indexing-documents/161655/2 "2018-12-20T10:38:16Z")

</div>

You should probably ask on AWS mailing lists for that as their service is not supported by Elastic.

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...

---

<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:** [January 17, 2019, 10:38am UTC](https://discuss.elastic.co/t/indexing-documents/161655/3 "2019-01-17T10:38:22Z")

</div>

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