# Allow use of AWS EC2 IAM roles with S3 file/image uploads

**URL:** <https://meta.discourse.org/t/allow-use-of-aws-ec2-iam-roles-with-s3-file-image-uploads/17197>\
**Category:** Feature\
**Tags:** pr-welcome\
**Created:** [Julho 4, 2014, 3:54am UTC](https://meta.discourse.org/t/allow-use-of-aws-ec2-iam-roles-with-s3-file-image-uploads/17197 "2014-07-04T03:54:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![windhamg1](https://avatars.discourse-cdn.com/v4/letter/w/d78d45/32.png) [@windhamg1](https://meta.discourse.org/u/windhamg1)\
**Post date:** [Julho 4, 2014, 8:01pm UTC](https://meta.discourse.org/t/allow-use-of-aws-ec2-iam-roles-with-s3-file-image-uploads/17197/3 "2014-07-04T20:01:10Z")

</div>

Thanks, @codinghorror. I took a stab at it in my local instance; it was pretty easy and seems to work well. The change is in `lib/file_store/s3_store.rb`, and a diff is attached. I can submit a git pull request if desired.

[s3\_store\_diff.txt](https://global.discourse-cdn.com/meta/original/3X/d/c/dc8ecf30f29f54da18d8db2e99015046c689b6dc.txt) (1.5 KB)

---

_[View the full topic](https://meta.discourse.org/t/allow-use-of-aws-ec2-iam-roles-with-s3-file-image-uploads/17197)._
