# How do i connect to S3 and index files on s3

**URL:** https://discuss.elastic.co/t/how-do-i-connect-to-s3-and-index-files-on-s3/22300
**Category:** Elasticsearch
**Created:** [February 20, 2015, 6:11pm UTC](https://discuss.elastic.co/t/how-do-i-connect-to-s3-and-index-files-on-s3/22300 "2015-02-20T18:11:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Siddartha\_Reddy](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@Siddartha\_Reddy](https://discuss.elastic.co/u/Siddartha_Reddy)
#### Post date: [February 20, 2015, 6:11pm UTC](https://discuss.elastic.co/t/how-do-i-connect-to-s3-and-index-files-on-s3/22300/1 "2015-02-20T18:11:36Z")

</div>

Hi,

I installed elastic search today, i am basically testing the es with one node. I am trying to configure the yml file, since the s3 gateway is deprecated where do i specify the bucket name? currently my config file looks like this :

cloud:  
aws:  
access\_key: xxxxxxxxxxxxxxxx  
secret\_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  
region: us-west-2

gateway:  
recover\_after\_nodes: 1  
recover\_after\_time: 5m

And once i start the service will it start indexing all the files in my bucket? is there an option to specify certain filenames to index in my bucket?

Thanks,  
Sid

---

<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, 12:31am UTC](https://discuss.elastic.co/t/how-do-i-connect-to-s3-and-index-files-on-s3/22300/2 "2017-07-06T00:31:09Z")

</div>


