Get Images from S3 Bucket with API Gateway Demos | Two Options | With Lambda | API Gateway S3 Proxy

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 พ.ย. 2024

ความคิดเห็น • 53

  • @varunpoondi2772
    @varunpoondi2772 2 ปีที่แล้ว

    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

    • @cloudwithraj
      @cloudwithraj  2 ปีที่แล้ว +1

      Amazing!! This made me happy :), glad my video was helpful

  • @ngyinggi6426
    @ngyinggi6426 3 ปีที่แล้ว +3

    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\"]
    "]}

    • @arthrow
      @arthrow 10 หลายเดือนก่อน

      Did you solve this?

  • @jpmmota
    @jpmmota 3 ปีที่แล้ว +1

    Thanks for the video, Raj! Unicorns are better than cats and dogs, definitely! 😂

    • @cloudwithraj
      @cloudwithraj  3 ปีที่แล้ว +1

      Hahaha I agree, thanks for watching till end!

  • @harpreetdawar9262
    @harpreetdawar9262 11 หลายเดือนก่อน

    Good demo Raj ji. I Subscribed to your channel 🙏

  • @chachalin7376
    @chachalin7376 3 ปีที่แล้ว

    thanks you so much!!! I've try api gateway 2 days... this video is very helpful!!!

  • @GameFlix2022
    @GameFlix2022 2 ปีที่แล้ว

    awesome video man

  • @sandeeppanchal8615
    @sandeeppanchal8615 2 ปีที่แล้ว

    You explained it clearly and cleanly. Superb!

  • @lakshmi3613
    @lakshmi3613 3 ปีที่แล้ว +1

    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.

    • @ceramix
      @ceramix 2 ปีที่แล้ว

      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.

  • @nehasharma-1909
    @nehasharma-1909 3 ปีที่แล้ว +1

    Throwing following error : {
    "errorMessage": is not JSON serializable",
    "errorType": "TypeError", Please help

  • @sambathnarayananparthasara1011
    @sambathnarayananparthasara1011 3 ปีที่แล้ว +3

    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

    • @cloudwithraj
      @cloudwithraj  3 ปีที่แล้ว

      Great observation Sambath, you are right. Users need to update the region accordingly.

  • @soczekpl11
    @soczekpl11 2 ปีที่แล้ว +1

    Do someone know how to turn on CORS at this api which connect directly to s3? I would be glad for any help (enabling cors in console does not work)

  • @nigelnyakudya2262
    @nigelnyakudya2262 3 ปีที่แล้ว +1

    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.

  • @souravsinha5330
    @souravsinha5330 2 ปีที่แล้ว

    Thanks simple and precise

  • @VictorMartinez-bb7uq
    @VictorMartinez-bb7uq 3 ปีที่แล้ว +1

    Hi! thanks for the video? This implementation should work with subfolders? thanks!

    • @cloudwithraj
      @cloudwithraj  3 ปีที่แล้ว +1

      Yes it will, just use the s3 folder/subfolder path instead

  • @karan_1993
    @karan_1993 ปีที่แล้ว

    Is there any requirement for addding customer managed policy to the api gateway role instead of AWS managed policy ??

  • @arabindadas4535
    @arabindadas4535 2 ปีที่แล้ว +2

    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.

    • @ruskinb1
      @ruskinb1 2 หลายเดือนก่อน

      Any update on this 😅. Please help on that

  • @goodstuff2read
    @goodstuff2read 2 ปีที่แล้ว

    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?

  • @MarcosRodriguez-gd2li
    @MarcosRodriguez-gd2li 3 ปีที่แล้ว +1

    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?

    • @amitpoonia404
      @amitpoonia404 3 ปีที่แล้ว +1

      In the OpenAPI file, Update URI section.
      "uri": "arn:aws:apigateway:us-west-2:s3:path/{key}",
      replace us-west-2 with the region of your bucket

    • @sambathnarayananparthasara1011
      @sambathnarayananparthasara1011 3 ปีที่แล้ว

      see whether my comment is of some help

  • @josephvasse1867
    @josephvasse1867 2 ปีที่แล้ว

    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 ?

  • @vivgamer
    @vivgamer 3 ปีที่แล้ว

    Thanks, bro your video helped me a lot

  • @Vasko10100
    @Vasko10100 3 ปีที่แล้ว

    Do you have the reverse? From the website to upload images to S3?

  • @antobourntec635
    @antobourntec635 2 ปีที่แล้ว

    im always getting binary while accessing my pdf files through browser. Is there any work around? I want my pdf to load on browser

  • @AviKshirsagar555
    @AviKshirsagar555 2 ปีที่แล้ว

    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?

  • @HP-ee9md
    @HP-ee9md 3 ปีที่แล้ว

    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.

  • @bivasbiswas7948
    @bivasbiswas7948 ปีที่แล้ว

    Thanks for sharing

  • @hasithaweerawardhana2474
    @hasithaweerawardhana2474 10 หลายเดือนก่อน

    Thank you

  • @chetansoni8620
    @chetansoni8620 3 ปีที่แล้ว

    please tell me the name of the theme in your VS code ? Thanks for the explanation

  • @killua3939
    @killua3939 3 ปีที่แล้ว

    does this apply as well for Video files? My intent is to have http get to streaming the videos.

  • @christianibiri
    @christianibiri 3 ปีที่แล้ว

    Love it

  • @omatic7862
    @omatic7862 3 ปีที่แล้ว

    followed both examples...Nothing works !!! all errors when in postman

  • @ahuman9095
    @ahuman9095 3 ปีที่แล้ว

    I think this would solve corporate networks blocking S3

  • @fe920
    @fe920 3 ปีที่แล้ว

    Thanks for the great video, instead of using postman can you tell us how to make an API request via
    command line?

    • @cloudwithraj
      @cloudwithraj  3 ปีที่แล้ว

      Hey F E, ty! You can simply use curl commands to invoke the API endpoint.

    • @fe920
      @fe920 3 ปีที่แล้ว

      @@cloudwithraj Thank you for your reply, what about using AWS-SDK in c++ and the rest API gateway do you have any idea how to use them together?

  • @raulbarriga7416
    @raulbarriga7416 3 ปีที่แล้ว

    You said s3.* for the action in the policy. I think you meant s3:* with a colon not a dot.

    • @cloudwithraj
      @cloudwithraj  3 ปีที่แล้ว

      Yes, you are correct Raul, ty 🙏

  • @p.s.gaming8202
    @p.s.gaming8202 ปีที่แล้ว

    Showing function not found 😢

  • @nycolazs
    @nycolazs 2 ปีที่แล้ว

    how can i list all objects of bucket with apigw?

    • @cloudwithraj
      @cloudwithraj  2 ปีที่แล้ว

      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

  • @RakeshBitling
    @RakeshBitling 3 ปีที่แล้ว +1

    Sir terraform please 🙏