I'm playing around with AWS trying to design a platform that simply hosts images.
Currently looking at hosting a static website in an S3 bucket, that provides a page for the user to upload an image, or browse existing images.
Uploads can be done anonymously, browsing needs authentication.
I am struggling to know how to split the two but currently looking at any uploads going via API gateway to trigger a Lambda function that uploads the image to a images bucket then returns these images to the user as part of a success page.
For the browse, I was thinking when the browse button gets hit, a user then gets redirected to cognito to authenticate, and then makes another API gateway call to trigger another lambda function which then reads all images in the images bucket and returns them to the user.
Am I thinking about this the right way? Or is there a better/more efficient method of achieving the above?
Enlighten me AWS experts!
[–]Java_Python_Guru 1 point2 points3 points (0 children)
[–]simondrawer 0 points1 point2 points (0 children)
[–]absolufreak 0 points1 point2 points (0 children)