# Change Storage location to AWS S3

**URL:** <https://forum.getodk.org/t/change-storage-location-to-aws-s3/40783>\
**Category:** Support\
**Created:** [March 16, 2023, 7:52am UTC](https://forum.getodk.org/t/change-storage-location-to-aws-s3/40783 "2023-03-16T07:52:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhinav\_sinha](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/abhinav_sinha/32/20731_2.png) [@abhinav\_sinha](https://forum.getodk.org/u/abhinav_sinha)\
**Post date:** [March 16, 2023, 7:52am UTC](https://forum.getodk.org/t/change-storage-location-to-aws-s3/40783/1 "2023-03-16T07:52:27Z")

</div>

**1. What is the issue? Please be detailed.**  
I have set up an ec2 machine for odk central. I want to modify the storage process to store any media attachments associated with the forms to directly get uploaded to S3. Is there any way to modify the settings to achieve this?

**2. What steps can we take to reproduce this issue?**

**3. What have you tried to fix the issue?**

**4. Upload any forms or screenshots you can share publicly below.**

---

<div class="post-metadata">

**Author:** ![danbjoseph](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/danbjoseph/32/21901_2.png) [@danbjoseph](https://forum.getodk.org/u/danbjoseph)\
**Post date:** [March 16, 2023, 12:18pm UTC](https://forum.getodk.org/t/change-storage-location-to-aws-s3/40783/2 "2023-03-16T12:18:10Z")

</div>

I would think you might be able to mount an S3 bucket to the EC2 instance such as described here: [https://aws.amazon.com/blogs/storage/mounting-amazon-s3-to-an-amazon-ec2-instance-using-a-private-connection-to-s3-file-gateway/](https://aws.amazon.com/blogs/storage/mounting-amazon-s3-to-an-amazon-ec2-instance-using-a-private-connection-to-s3-file-gateway/)

And then adapt the instructions for adding external storage to your ODK Central installation: [https://docs.getodk.org/central-install-digital-ocean/#adding-external-storage](https://docs.getodk.org/central-install-digital-ocean/#adding-external-storage)

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [March 16, 2023, 6:19pm UTC](https://forum.getodk.org/t/change-storage-location-to-aws-s3/40783/3 "2023-03-16T18:19:35Z")

</div>

I think OP wants to keep the media out of the DB and instead put it on blob storage like S3. There's a similar feature request here: [Storing images on AWS S3 for ODK Central](https://forum.getodk.org/t/storing-images-on-aws-s3-for-odk-central/36018). Do I have it right, @abhinav_sinha?

Can you tell me more about what's driving this need? Is it because of DB performance? Because you want to link directly to the files?
