Best way to store shared files between ec2 instances

234 Views Asked by At

My website supports uploading images by the users. I'm trying to figure out what is the best strategy to save those files given that I have more than one ec2 instance running. Amazon Elastic File System sounds perfect but it's still in preview mode. What is the best alternative?

1

There are 1 best solutions below

2
On

You almost certainly want to use S3 to share images between EC2 instances unless you have some very unique circumstances that won't allow it.

Best to not store any user data on the instance itself if you can avoid it; makes it easier to scale and to recover from crashes. S3 is a perfect super-redundant place to keep 'stuff' that costs next to nothing.