Thank you so much. The second solution helped my team put and get images from our bucket. We spent like 2 weeks to figure out why our lambdas weren't working until we saw this video lol
Hi, how come I get an error message at the postman which is {"errorMessage": "'pathParameters'", "errorType": "KeyError", "stackTrace": [" File \"/var/task/lambda_function.py\", line 7, in lambda_handler bucket_name = event [\"pathParameters\"][\"bucket\"] "]}
Wonderful effort. I learnt immensely from your video. Thank you ! I have a small observation as follows: You explained some modifications like "credentials" required for the Open API /sample API JSON file which further you import to the API Gateway. In the same file, under "uri" us-west-2 region is hard-coded. users having S3 buckets in different regions may need to update their corresponding region? If it is not updated, during final image retrieval there will be an Error
why i am getting thsi error PermanentRedirectThe bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.
This is the same error I received. I think this has to do with the s3 permissions. @Raj, do you we need specific permissions on the s3 bucket or individual files for this to work? Be default, s3 is set to block all file permissions. When I try to adjust the file permissions, I still can't get it to work, however.
Hi Raj - Thank you so much for this great video. API gateway has limitation for response size . if image size is more than 6MB what is the best way to do ? Also please suggest how to returned huge json response (size more than 6MB ) using API gateway.
Thank you so much for the great video. I'm serving my images from s3 with CloudFront but now how can I server .webp images to supported browsers with lambda real-time .webp conversion if the .webp does not exist in the bucket.
Greate knowledge you delivered Mr. Raj thanks for the lecture. How can We access and download the Image which are located in several folders from S3 bucket?
HI Raj, thanks for the video. When I do this in post man I get what appears to be binary code... Something like this... "���� ExifMM*���". and in react I get a broken image. what am I doing wrong?
Great video! I reproduced your api but I am getting the following error code when I do put requests: The Bucket you are attempting to access must be addressed using the specified endpoint. Do you know what is going on here?
Hello, thanks for your excellent video. I've been trying to download images from my s3 bucket for several days, however I'm facing an issue : the file is returned in base64 not Binary, I've tried many things to convert it but none succeeded, any guesses ?
Hi @Raj can we also export csv from S3, when i do it I see only the content of the file in the browser but wanted to check if we can download the csv file.
Hey, you need to use the listobjects. Check the second link on this page - docs.aws.amazon.com/apigateway/latest/developerguide/integrating-api-with-aws-services-s3.html