2 Answers
- Newest
- Most votes
- Most comments
2
I would strongly advice against including api key & secret in client side code. Even when you craft the IAM policy very carefully it is easy to make mistakes or later alter the policy causing potentially very costly failures.
S3 API for public buckets works also in anonymous mode without credentials. See https://stackoverflow.com/questions/69223827/using-aws-sdk-without-credentials
Thanks for your advice.
1
Hello.
I don't think it's possible to display all the PDFs in the bucket using only HTML.
I think you will need to use JavaScript as answered in the Stackoverflow below.
https://stackoverflow.com/questions/5897505/how-can-i-provide-directory-listings-for-those-viewing-my-amazon-s3-based-static
Thanks for your advice.
Relevant content
- asked 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated a year ago
Thanks to Riku and Kallu for your answers.