Skip to content

An single index.html file that - along with proper config - allows the visitor to browse through an S3 bucket

Notifications You must be signed in to change notification settings

vdibart/s3-bucket-browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

s3-bucket-browser

An single index.html file that - along with proper config - allows the visitor to browse through an S3 bucket

Note the URLs below and in the code are IP-restricted. And even if you did get access to them all you'd see is a thousand pictures of my sons : )

Had to:

  1. Create new Identity Pool using Cognito allowing unauthenticated identities Make sure to check "Enable access to unauthenticated identities", but accept defaults otherwise

  2. CORS Configuration

* GET *
  1. Bucket Policy { "Version": "2012-10-17", "Id": "S3PolicyId1", "Statement": [ { "Sid": "IPAllow", "Effect": "Allow", "Principal": "", "Action": "s3:", "Resource": "arn:aws:s3:::/*", "Condition": { "IpAddress": { "aws:SourceIp": "/24" } } } ] }

  2. Grant "List" permissions to "Authenticated Users"

About

An single index.html file that - along with proper config - allows the visitor to browse through an S3 bucket

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages