title: How to access file storage from web application on Amazon EC2
body: <p>I am in process of hosting a dynamic website on Amazon EC2. I have created the environment and deployed war on ElasticStalkBean. I can connect to mysql database too. But I am not sure how my web application will read/write to the disk and at which path?
  As per my understanding, Amazon provides 3 options for file storage
  S3
  EBS (Persistant)
  instance storage</p>
  
  <p>I could upload files on s3 creaing bucket but how can my web application read or write to S3 bucket path on differnt server?</p>
  
  <p>I am not sure how should i upload files or write file to EBS. Connecting to EC2, I cannot cd /dev/sd* directory for my EBS attached to my environment instance. How can I configure my web app to use this as directory for images etc </p>
  
  <p>Instance storage is lost if I stop or recreate env. and is non persistant. So not interested to store files here.</p>
  
  <p>Can you help me on this?
  Where to upload file that are read by application?
  Where can my application write files?</p>