How to Test Lambda Functions Locally and Deploy to AWS using AWS SAM | Step by Step

Поделиться
HTML-код
  • Опубликовано: 29 окт 2024

Комментарии • 24

  • @fahadazeem1449
    @fahadazeem1449 Год назад

    Thank you so much. I was struggling to get a panda functions working on lambda for days. Worked like a charm :)

    • @FelixYu
      @FelixYu  Год назад

      Glad that u found it helpful mate!!

  • @NandakumarBalasubrayalu
    @NandakumarBalasubrayalu Год назад

    Short and crispy Explanation. Well done and Thank you

    • @FelixYu
      @FelixYu  Год назад

      Glad that u found it helpful!!

  • @shyamsailendran1394
    @shyamsailendran1394 Год назад

    Thank you for the short and crispy video for any newbie to AWS Lambda.
    Could you please include details on
    1. how to deploy the lambda with the name as the per the project name?
    2. use an existing IAM role?
    3. including unit tests and automating the test, before deployment?

    • @upendrasaimaddi9297
      @upendrasaimaddi9297 Год назад

      For existing role:
      Type: AWS::Serverless::Function
      Properties:
      CodeUri: FunctionNameHelloMars/
      Handler: app.lambdaHandler
      Runtime: nodejs14.x
      Architectures:
      - x86_64
      Events:
      FunctionNameHelloMars:
      Type: Api
      Properties:
      Path: /functionnamehellomars
      Method: post
      Role: "arn:aws:iam:::role/"

  • @Zaghdudude
    @Zaghdudude 3 месяца назад

    REAAAALLLLY HELPFUL ! Hope you can do something similar to use Aws Glue in local

  • @bonganinyoni1428
    @bonganinyoni1428 Год назад +1

    Very informative, can you explain why we needed docker, or dockerizing the lambda is yet to come in another video?

  • @AlexBlack-xz8hp
    @AlexBlack-xz8hp 8 месяцев назад

    This was really helpful. Thank you!

  • @mikel2704
    @mikel2704 Год назад

    Great tutorial, thank you🎉

  • @itsme1587
    @itsme1587 Год назад

    This video is very informative, thanks man

    • @FelixYu
      @FelixYu  Год назад

      Glad u found it helpful!!

    • @ummallarakesh4602
      @ummallarakesh4602 Год назад

      @@FelixYu i had to watch one of your video, i loved that and gone through the channel and then realized that you deserved more recognition actually, great work brother.

  • @ranjithb2642
    @ranjithb2642 Год назад

    Thank you Felix for the nice video 👍...can we try to deploy the lambda code in editable mode ?

    • @FelixYu
      @FelixYu  Год назад

      The reason why it’s not editable in the lambda console is becuz the deployment package size is too large. This is not due to the lambda code (it only has a few lines of code) but due to the 2 external libraries we added (I.e., requests and pandas) (10:42 of the video). This is exactly the reason why we wanna use SAM for local testing so that we don’t needa install the libraries manually, zip it up and upload it every time we make changes to it :)

  • @upendrasaimaddi9297
    @upendrasaimaddi9297 Год назад

    Hi, Thank you so much for the superb explanation.
    1) Could you please help how to set authentication. (AWS-IAM),

  • @anasputhawala8677
    @anasputhawala8677 Год назад

    Hey I'm using Python 3.10 and I tried to import pandas but it doesn't work... I know that using AWS Lambda through the GUI on AWS console you can just add the layer for pandas, but how do I do this when I test and build the lambda as done in this video?
    Also, can doing this save any money? Like if we're testing it locally like this as opposed to using the AWS Lambda through the GUI on AWS?

  • @ventin75
    @ventin75 10 месяцев назад

    Please note that starting from September 2023, AWS will no longer maintain the AWS managed Homebrew installer for the AWS SAM CLI

  • @UnknownUnknown-qq6rs
    @UnknownUnknown-qq6rs Год назад

    how would i test them if they are already deployed to the cloud AWS?

  • @shoprecartteam9567
    @shoprecartteam9567 Год назад

    How to transcode videos for different regulations using mediaconvert and stream it in all browsers using s3 and cloudfront? Can you please make a video on it? Hls is currently not working desktop browsers please help us.

  • @二一-g4p
    @二一-g4p 3 месяца назад

    sam local invoke error:failed to deserialize response from rie. Help ❤❤❤❤

  • @avinashkumarbhardwaj9407
    @avinashkumarbhardwaj9407 Год назад

    Please zoom the screen 👍❤

  • @lolandegieseke6032
    @lolandegieseke6032 Год назад

    Promo-SM 🌹

  • @JamesBond-ux1uo
    @JamesBond-ux1uo 9 месяцев назад

    What the funk is this