Basic HTTP Auth for AWS S3 hosted site, similar to .htaccess

Leon Barrett picture Leon Barrett · Nov 15, 2012 · Viewed 8.9k times · Source

I have a static HTML site hosted on Amazon S3.

Ideally I want to be able to limit access to a staging site in the same way as with a .htaccess/.htpasswd file.

I understand that bucket policies can be used to limit access (I have already used one to make the bucket contents publicly accessible), but I can't see any way to limit access.

In an ideal situation I would like an auth prompt - but appending a token to a URL would also work.

Answer

J0hnG4lt picture J0hnG4lt · Apr 17, 2013

Yes, this is possible: checkout s3auth (no affiliation).