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
gefragt vor einem Jahr2260 Aufrufe
1 Antwort
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
EXPERTE
kentrad
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen