title: Hosting static images in AWS S3
body: <p>I am integrating the ability for users of my web app to be able to upload images to my site. I want to store these images in an AWS S3 bucket, but I need to be careful with privacy and making sure only people that should have access to these files can see them.</p>
  
  <p>Users should have access to these files via <code>&lt;img src="s3_link"&gt;</code> but should not be able to access the bucket directly or list the objects within.</p>
  
  <p>I can accomplish this by making the bucket <code>public</code> but this seems dangerous.</p>
  
  <p>How do I set up a proper bucket policy to allow these images to be loaded onto a webpage in an <code>&lt;img&gt;</code> tag?</p>