Best practice for hosting media files "other" than static website with public access?

0

I am completely new to S3. I have hundreds of audio files I need to host for a web app (javascript code on a client web browser needs to access the files for playback). Currently we have them in a bucket that has public read access (static website), and we understand the security risks. Ideally we have S3 configured to allow our app to get a list of files available, and do simple searches (like list all files that start with "A").

What is the easiest "alternative" to static hosting we should use that is better security-wise?

Thanks for any pointers to documentation/answers.

1 Respuesta
2

It is better to place CloudFront in front of S3.
This setting also prevents direct access to S3.
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html

profile picture
EXPERTO
respondido hace 10 meses
  • Thank you! I will check out CloudFront!

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas