Getting images from private s3 bucket and display it on the website

0

Hello everyone, i am new to aws and i really overwhelmed by all the services that on my screen. I am building a website and i should store some images and pdf files in my database but since its not a good practice i wanted to store these in a cloud service. After some research i found the aws as the best option. I followed some tutorials on the internet about s3, created a bucket and succesfully stored some files. But right now i can only put images to my s3 bucket. I need to display the images on the website for my users but everytime i try there is an "access denied" error message pops up. I am using the right access key and correct iam user. I changed my bucket access to public and it worked but i dont want it to be public. How can i do it? Can you help me please? Thanks.

ttclw
demandé il y a un an2260 vues
1 réponse
0

You can serve content from a private bucket using CloudFront. See this article for setting this up: How do I use CloudFront to serve a static website hosted on Amazon S3?.

profile pictureAWS
EXPERT
kentrad
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions