# S3 input plugin without AWS credentials

**URL:** <https://discuss.elastic.co/t/s3-input-plugin-without-aws-credentials/34152>\
**Category:** Logstash\
**Created:** [November 9, 2015, 1:30pm UTC](https://discuss.elastic.co/t/s3-input-plugin-without-aws-credentials/34152 "2015-11-09T13:30:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![an1994](https://avatars.discourse-cdn.com/v4/letter/a/5daacb/32.png) [@an1994](https://discuss.elastic.co/u/an1994)\
**Post date:** [November 9, 2015, 1:30pm UTC](https://discuss.elastic.co/t/s3-input-plugin-without-aws-credentials/34152/1 "2015-11-09T13:30:03Z")

</div>

Hi,  
I'm working on something that needs data to be transfered from s3 to Elasticsearch.So, I chose Logstash for transfering data. In the config file of logstash, I dont want to provide AWS credentials(access\_key\_id,secret\_key). I read somewhere that through IAM roles on EC2 instance, we can get data from s3 without providing credentials. please explain more about this process.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 10, 2015, 9:53pm UTC](https://discuss.elastic.co/t/s3-input-plugin-without-aws-credentials/34152/2 "2015-11-10T21:53:57Z")

</div>

> [@an1994](#):
>
> I read somewhere that through IAM roles on EC2 instance, we can get data from s3 without providing credentials. please explain more about this process.

Well according to [the docs](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-s3.html), you don't need to specify anything other than a bucket.

---

<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, 5:23am UTC](https://discuss.elastic.co/t/s3-input-plugin-without-aws-credentials/34152/3 "2017-07-06T05:23:13Z")

</div>


