Directory Listing in S3 Static Website

0 votes

I set up an S3 bucket to host the static files.

While using the website endpoint ( it forces me to set an index file. When the file isn't found, it throws an error instead of listing directory contents.

When using the s3 endpoint ( I get an XML listing of the files, but I need an HTML listing that users can click the link to the file.

I tried setting the permissions of all files and the bucket itself to "List" for "Everyone" in the AWS Console, but still, it's not working

I have also tried some of the javascript alternatives, but they either don't work under the website url (that redirects to the index file) or just don't work at all. As a last resort, a collapsible javascript listing would be better than nothing, but I haven't found a good one.

Is this possible? If so, do I need to change permissions, ACL or there is something else?

Jul 18, 2018 in AWS by Flying geek
• 3,280 points

1 answer to this question.

0 votes

There is also a solution:

Similar to but I couldn't make it work with Internet Explorer. So works with IE and also add the possibility to order the files by names, size and date. On the downside, it doesn't follow folders: only the files at one level are displayed.

answered Jul 18, 2018 by Cloud gunner
• 4,670 points

Related Questions In AWS

0 votes
1 answer

S3 Static Website Hosting Route All Paths to Index.html

Yes there is an easy way to ...READ MORE

answered Apr 8, 2018 in AWS by code_ninja
• 6,290 points
+1 vote
1 answer

Hosting static website with AWS S3 and Route 53

Add an additional bucket called and ...READ MORE

answered Dec 4, 2018 in AWS by Archana
• 5,640 points
+6 votes
3 answers
0 votes
0 answers

How to host a stic website of S3 in the aws ECS?

The keycloak programme is operating on my ...READ MORE

Dec 22, 2022 in AWS by Tejashwini
• 3,820 points
1 flag 491 views
+1 vote
2 answers

AWS CloudWatch Logs in Docker

The awslogs works without using ECS. you need to configure ...READ MORE

answered Sep 7, 2018 in AWS by bug_seeker
• 15,520 points
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,090 points
0 votes
1 answer

Trying to upload data stream in Amazon S3

Try adding the ContentType & ACL in ...READ MORE

answered Jun 28, 2018 in AWS by Cloud gunner
• 4,670 points
0 votes
2 answers

Receiving SMS from users and stores in AWS

As far as I know, receiving international ...READ MORE

answered Aug 21, 2018 in AWS by Priyaj
• 58,090 points
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP