By using AWS re:Post, you agree to the AWS re:Post Terms of Use

Best way to list S3 objects behind CloudFront

0

Currently, have an S3 hosted website that I am getting S3 objects with S3.listObjects . I mirrored the site behind CloudFront and can get the objects individually, but struggling with a way to get a list of the objects. Please suggest the best way and relevant tutorials. Prefer a javascript solutions, but can work through alternatives.

2 Answers
1
Accepted Answer

One option could be is to use the AWS JavaScript SDK to connect directly to the S3 APIs from your applications and control what to list, batch etc. for performance and cost opt point of view. Then you can create an API on top of like Lambda function that can list objects using the AWS SDK.

profile pictureAWS
EXPERT
answered a year ago
profile picture
EXPERT
reviewed a year ago
profile pictureAWS
EXPERT
reviewed a year ago
0

Thanks I work on that

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions