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

Поділитися
Вставка
  • Опубліковано 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/"

  • @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 9 місяців тому

    This was really helpful. Thank you!

  • @Zaghdudude
    @Zaghdudude 4 місяці тому

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

  • @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.

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

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

  • @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 :)

  • @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.

  • @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?

  • @UnknownUnknown-qq6rs
    @UnknownUnknown-qq6rs Рік тому

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

  • @ventin75
    @ventin75 11 місяців тому

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

  • @二一-g4p
    @二一-g4p 4 місяці тому

    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 10 місяців тому

    What the funk is this