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

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ส.ค. 2024
  • In this tutorial, I talked about how to test lambda functions locally and deploy it to a specific AWS account using the SAM CLI step by step

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

  • @Zaghdudude
    @Zaghdudude 26 วันที่ผ่านมา

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

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

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

    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 10 หลายเดือนก่อน

      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/"

  • @user-nn5xq3bo6j
    @user-nn5xq3bo6j ปีที่แล้ว

    Short and crispy Explanation. Well done and Thank you

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

      Glad that u found it helpful!!

  • @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 6 หลายเดือนก่อน

    This was really helpful. Thank you!

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

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

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

    Great tutorial, thank you🎉

  • @user-mm7qo2rx7u
    @user-mm7qo2rx7u หลายเดือนก่อน

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

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

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

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

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

  • @ventin75
    @ventin75 8 หลายเดือนก่อน

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

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

    Please zoom the screen 👍❤

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

    Promo-SM 🌹

  • @JamesBond-ux1uo
    @JamesBond-ux1uo 7 หลายเดือนก่อน

    What the funk is this