Resize an Image in AWS S3 using AWS Lambda

Поділитися
Вставка
  • Опубліковано 16 січ 2025

КОМЕНТАРІ • 33

  • @victoriabressan4557
    @victoriabressan4557 4 роки тому +2

    1:59 how can i configure the output "amazon s3 and cloudwatch logs? because i did the same exercise from qwklabs and It doesnt appeare the same way.

  • @tech3425
    @tech3425 2 роки тому

    You must be Mr. Bean. Not a word said, yet thoroughly entertained us!

  • @mangarajanikanth1108
    @mangarajanikanth1108 Рік тому

    sir article link not opening will you send link

  • @charvithaker6571
    @charvithaker6571 2 роки тому

    Can you show how to upload an image to s3 bucket using lambda function

  • @TobiasQuina-vb2kw
    @TobiasQuina-vb2kw Рік тому

    Hola, buen video. Me podria ayudar con este error {
    "errorMessage": "Unable to import module 'lambda_function': No module named 'lambda_function'",
    "errorType": "Runtime.ImportModuleError",
    "stackTrace": []
    }

  • @bogdanlaban1906
    @bogdanlaban1906 4 роки тому +1

    Sorry, but why do I get this error?
    [ERROR] Runtime.ImportModuleError: Unable to import module 'CreateThumbnail': No module named 'CreateThumbnail'

    • @bogdanlaban1906
      @bogdanlaban1906 4 роки тому +2

      {
      "errorMessage": "Unable to import module 'CreateThumbnail': No module named 'CreateThumbnail'",
      "errorType": "Runtime.ImportModuleError"
      }

  • @sanjeevrana3471
    @sanjeevrana3471 3 роки тому

    there is not code provided in the link you have given in the link.

    • @nidhinkumar6222
      @nidhinkumar6222  3 роки тому

      Are you looking for the create thumbnail handler code if so it is there in the link I have provided. For quick reference check this link
      s3-us-west-2.amazonaws.com/us-west-2-aws-training/awsu-spl/spl-88/2.3.prod/scripts/CreateThumbnail.zip

  • @albrigo9690
    @albrigo9690 4 роки тому +1

    Cool code, thanks! When I upload a portrait image taken from my phone the resized image is turned 90 degrees CCW. I'm new to python my efforts to to resolve this issue haven't worked. Any advice?

  • @enkhbayarwiki1353
    @enkhbayarwiki1353 5 років тому +1

    Existing role ?

  • @takeiteasy89
    @takeiteasy89 3 роки тому

    how can i change region?

  • @namratalagshetti8419
    @namratalagshetti8419 4 роки тому

    But our region is different
    Can you tell from where we have to copy our function code file zip
    For pasting it in "Upload a file amazon s3"

  • @khushalsapariya9304
    @khushalsapariya9304 4 роки тому

    Send source code ?

  • @Lotus2902
    @Lotus2902 3 роки тому

    Hello sir can u help me

  • @enkhbayarwiki1353
    @enkhbayarwiki1353 5 років тому

    Hello 1 Bucket in date YYYY/MM/300/thumnail folder create small image?

  • @vickyadhikari
    @vickyadhikari 5 років тому

    HI I am getting this error "Error occurred while GetObject. S3 Error Code: AuthorizationHeaderMalformed. S3 Error Message: The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'us-west-2'" while save the function.

    • @nidhinkumar6222
      @nidhinkumar6222  5 років тому

      S3 bucket should be in us west region

    • @vickyadhikari
      @vickyadhikari 5 років тому +4

      @@nidhinkumar6222 okay ..now I am getting some error when I test Upload event "{
      "errorMessage": "An error occurred (404) when calling the HeadObject operation: Not Found",
      "errorType": "ClientError",
      "stackTrace": [
      " File \"/var/task/CreateThumbnail.py\", line 22, in handler
      s3_client.download_file(bucket, key, download_path)
      ",
      " File \"/var/task/boto3/s3/inject.py\", line 172, in download_file
      extra_args=ExtraArgs, callback=Callback)
      ",
      " File \"/var/task/boto3/s3/transfer.py\", line 307, in download_file
      future.result()
      ",
      " File \"/var/task/s3transfer/futures.py\", line 106, in result
      return self._coordinator.result()
      ",
      " File \"/var/task/s3transfer/futures.py\", line 265, in result
      raise self._exception
      ",
      " File \"/var/task/s3transfer/tasks.py\", line 255, in _main
      self._submit(transfer_future=transfer_future, **kwargs)
      ",
      " File \"/var/task/s3transfer/download.py\", line 345, in _submit
      **transfer_future.meta.call_args.extra_args
      ",
      " File \"/var/task/botocore/client.py\", line 357, in _api_call
      return self._make_api_call(operation_name, kwargs)
      ",
      " File \"/var/task/botocore/client.py\", line 661, in _make_api_call
      raise error_class(parsed_response, operation_name)
      "
      ]
      }"

    • @luiscarranza90
      @luiscarranza90 5 років тому

      @@vickyadhikari i got same error

    • @agroforestryconsultancyroz3157
      @agroforestryconsultancyroz3157 5 років тому

      @@vickyadhikari I also such an error when the photos are uploaded in a folder path, but when it's directly in the bucket there is no problem. The photos should be uploaded via SDK into a bucket/folder_path. Is there a way to solve the error?

    • @hellorsanjeev11
      @hellorsanjeev11 4 роки тому

      @@nidhinkumar6222 my bucket is somewhere else (not in US WEST 2) and your code works just fine.

  • @akshayawate7239
    @akshayawate7239 4 роки тому

    how to get zip code

    • @nidhinkumar6222
      @nidhinkumar6222  4 роки тому

      In the description there is an article in that you can find the zip code and sorry for the late reply

  • @soumyakulkarni9084
    @soumyakulkarni9084 4 роки тому

    Hi ,
    What is the zip file you have added in the S3 url?

    • @nidhinkumar6222
      @nidhinkumar6222  4 роки тому

      Can you check the description where I have written an article about it. In that u can find that link

    • @soumyakulkarni9084
      @soumyakulkarni9084 4 роки тому

      @@nidhinkumar6222 thank you!!
      I hope you add more videos 👍

  • @hellorsanjeev11
    @hellorsanjeev11 4 роки тому

    Good video, thank you! Can I control the size of generated image?

    • @nidhinkumar6222
      @nidhinkumar6222  4 роки тому

      I haven't tried it and sorry for the late reply

    • @donn4y
      @donn4y Рік тому

      Hi! Did you manage to change the size?

  • @anantgarg9033
    @anantgarg9033 2 роки тому

    hiiiiiiiiiii
    , i am Anant

  • @velz948
    @velz948 2 роки тому +1

    START RequestId: 010f9b0d-b2a2-40cb-a881-939536c57c44 Version: $LATEST
    Unable to import module 'CreateThumbnail': cannot import name '_imaging'