AWS API Gateway to Lambda Tutorial in Python | Build a REST API

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

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

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

    Looking to become an expert on AWS Lambda? Check out my new course: AWS Lambda - A Practical Guide
    www.udemy.com/course/aws-lambda-a-practical-guide/?referralCode=F6D1A50467E579C65372

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

      Sorry this Course is not available in udemy. :)

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

    I am using the same code that yu gave .. but facing key error.
    Error:
    {
    "errorMessage": "'queryStringParameters'",
    "errorType": "KeyError",
    "stackTrace": [
    [
    "/var/task/lambda_function.py",
    9,
    "lambda_handler",
    "transactionId = event['queryStringParameters']['transactionId']"
    ]
    ]
    }
    Input: transactionId=1&type=abc&amount=123

  • @AlvinC-sz3li
    @AlvinC-sz3li 3 ปีที่แล้ว +97

    As an AWS engineer I have to say, very good tutorial video. Why such a channel only has 21k sub??? For begineers, your videos are better than our official ones.

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

      Thanks for your support . The subscribe count jump to 53k+ ...👍

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

      Now its 117K. Super fast.

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

      now its 149k

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

      254k 😮

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

      @@zachtravelstheworld subs, not views

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

    As others already mentioned --- what's the fix for the line 25 syntax error that you said you'd get back to?

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

    When I go to url, it only shows me the message which is "Hello from Lambda!" instead of showing all the json. Does anyone know how to fix this?

  • @faithinverity8523
    @faithinverity8523 4 ปีที่แล้ว +23

    Wow. Short, complete, accurate and useful. You are remarkably good at making instructional videos. Thank you.

    • @BeABetterDev
      @BeABetterDev  4 ปีที่แล้ว

      Thanks for the kind words Faithin!

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

    Getting the following error when I tested the lambda function (without using the API gateway endpoint):
    {
    "errorMessage": "'queryStringParameters'",
    "errorType": "KeyError",
    "stackTrace": [
    [
    "/var/task/lambda_function.py",
    7,
    "lambda_handler",
    "transactionId = event['queryStringParameters']['transactionId']"
    ]
    ]
    Any insight on how to fix this? Not sure how everyone is able to use the same code... Seems like there is an issue with the code itself.

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

      Hi there, have you tried to print out the event that has been passed into the lambda function to see if the input contains query string parameter's. It seems like your functions code is trying to access that field but it is not present in the event. One other possibility is that you created a post API instead of a GET API. This will result in the payload been inside the body of the request instead of query string parameter's. Hope this helps.

  • @kono163
    @kono163 5 ปีที่แล้ว +4

    Great tutorial!
    this is just memo for other beginners.
    ●can't test in lambda console?
    try something like this ↓
    {
    "queryStringParameters":{
    "transactionId": "5",
    "type": "purchase",
    "amount": "100"
    }
    }
    ●internal server error?
    you need equal in line 25 ↓
    responseObject['headers'] = {}
    and check typos
    .
    Thanks!

    • @BeABetterDev
      @BeABetterDev  4 ปีที่แล้ว

      Thank you for the catch!

  • @BilalAhmed-nt9gi
    @BilalAhmed-nt9gi 3 ปีที่แล้ว +8

    This dude is way more Good then actual AWS guys. And video is super sharp to the point (Y) Loved it

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

      Thank you so much for your kind words!

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

    If you let me, I'll kiss you for this knowledge

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

    Great tutorial. Explained better than even AWS official ones.
    One suggestion: Next time show how you debug the error also. I get that you use cloud trail here but it'll still be useful to newcomers

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

      Thank you Harsha for the kind words and the feedback!

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

      @@BeABetterDev What was the fix to that error anyway?

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

    Thanks a ton for your tutorial here. I just needed a quick rundown and this is exactly what I needed. Quick and concise.

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

    Thank you very much for this video!
    Unfortunately such as many others I had also the error :
    Getting this error " {"errorMessage": "'queryStringParameters'", "errorType": "KeyError", "stackTrace": [" File \"/var/task/lambda_function.py\", line 7, in lambda_handler
    transactionId = event['queryStringParameters']['transactionId']
    "]} ".
    I tried to eliminate and crete a new API and now it gives me 'internal server error', but when I look into cloud watch it is written that I still have the error discribed at hte beginning.
    Anyone has been able to solve this issue?

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

      @Mohit Yadav this didn't work for me...

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

      Were you able to solve this issue?

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

      Same here. Getting the error when testing the code within Lambda, before even touching API. I keep rereading the code, don't see any difference. Today lambda doesn't show Python 3.6 as an option, no idea if that matters.

  • @mrrobot6320
    @mrrobot6320 4 ปีที่แล้ว +8

    Short and Simple. Best tutorials. Keep Teaching :). Thank you

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

    In our use case, we built an API Gateway to call a collection of microservices, from lambda(new code) & HTTP (legacy code). It works well, but I'd advise anyone working on a serverless architecture to look into how to keep lambdas "warm"

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

      Good advice Derek, Provisioned Concurrency is a life saver!

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

    Cool video but I get an internal server error saying it doesn't recognise 'queryStringParameters' I have no idea how to fix it after a few hours

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

      Hi there, did you use a GET method ?

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

    There's a '=' missing in the code: responseObject['headers'] = {}

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

    Great video! Thanks for demonstrating API Gateway + Lambda integration

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

    get this ...{"transactionId": "5", "transactionType": "'PURCHASE'", "transactionAmount": "500", "message": "xyz says HELLO"} .... finally understand what api gateway/lambda is doing....great job AWS Simplified!

    • @BeABetterDev
      @BeABetterDev  5 ปีที่แล้ว

      Great to hear I was able to help!

  • @OakZ-sr9by
    @OakZ-sr9by 3 หลายเดือนก่อน

    I keep getting an error on line 7...
    I am using the exact same code from the repo
    import json
    print('Loading function')
    def lambda_handler(event, context):
    #1. Parse out query string params
    transactionId = event['queryStringParameters']['transactionId']
    transactionType = event['queryStringParameters']['type']
    transactionAmount = event['queryStringParameters']['amount']
    print('transactionId=' + transactionId)
    print('transactionType=' + transactionType)
    print('transactionAmount=' + transactionAmount)
    #2. Construct the body of the response object
    transactionResponse = {}
    transactionResponse['transactionId'] = transactionId
    transactionResponse['type'] = transactionType
    transactionResponse['amount'] = transactionAmount
    transactionResponse['message'] = 'Hello from Lambda land'
    #3. Construct http response object
    responseObject = {}
    responseObject['statusCode'] = 200
    responseObject['headers'] = {}
    responseObject['headers']['Content-Type'] = 'application/json'
    responseObject['body'] = json.dumps(transactionResponse)
    #4. Return the response object
    return responseObject
    Response
    {
    "errorMessage": "'queryStringParameters'",
    "errorType": "KeyError",
    "requestId": "095f8e51-982c-4621-956d-2032446286da",
    "stackTrace": [
    " File \"/var/task/lambda_function.py\", line 7, in lambda_handler
    transactionId = event['queryStringParameters']['transactionId']
    "
    ]
    }

  • @kishor777
    @kishor777 4 ปีที่แล้ว +4

    I love 10 mins tutorial and this one is perfect 10 min tutorial. Thanks.

    • @BeABetterDev
      @BeABetterDev  4 ปีที่แล้ว +1

      Thanks so much kishor!

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

    Great video, no only this but all the others in the channel too. I dont like the sounds with the mouth when starting new words, but anyway best AWS channel in youtube so far.

    • @BeABetterDev
      @BeABetterDev  4 ปีที่แล้ว

      Thanks for the feedback!

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

    Great video. One small point. You mentioned about a syntax error in line 25, but doesn’t address that later in the video.

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

      What was the actual fix to that error anyway?

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

      @@timothyle4820 he missed out an equals character before the empty dictionary. I think he simply fixed it off screen.

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

      @@timothyle4820 Just add the = symbol before the {}

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

    Great video. One doubt I faced at work. How do you choose between having one big lambda function with Flask Python code internally handling all the routing for different endpoint v/s one seperate Python lambda(without Flask) for each Api gateway resource? Which is a better design and better performing?

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

    Excellent Tutorial. I'm currently learning how to use AWS Lambda and AWS API gateway to create a serverless USSD with Africa's Talking using python. Ideally I want to automate the entire process using Terraform.

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

    a cool little trick to use if you want to print a variable name and its value is to do (with transaction_id as example): print(f'{transaction_id=}')

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

      Thanks for this cool tip Felix!

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

    OMG, thank you sooooo much for this video!!! Building a simple website for my wedding in a few months and wanted to be able for folks to RSVP online and the data loaded to a dynamoDB server to keep everything organized. Spent literally all day yesterday going thru guides and documentation with no success. Would just be curious if you would need to do anything differently for a post method instead of get. Web design is not my forte, which is why I wanted this project to challenge myself. Thanks again!!!

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

      Hi Kyle! Thanks for watching and congratulations on your wedding. I'm also getting married soon and hope you're able to have a happy day despite covid.
      In terms of your question, the only difference is that you would select the POST method during the api creation in API gateway. Also, the location of the parameters being passed into your lambda function will change (they will likely no longer be in the query param's field, but instead in the 'body'). The quickest way to find out where is just to console.log the input object (event) and find out where in the object the param's are being passed.
      Hope this helps and feel free to reach out if you have any followup Q's.

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

    Hi, Thank you, this de-mystified some of the profoundness of the topic! Very well structured and explained... What is throwing me off, is whether there is a standard structure protocol for the event[] object? Similarly, why cant a straighforward JSON response be sent over through the lambda? Again, is there a standard structure for this responseObject[]? How and where is this responseObject declared?
    Why can't the lamda return something like so:
    return {
    'statusCode': 200,
    'body': json.dumps('Hello from Lambda!'),
    'Name1':event['queryStringParameters']['param1']
    'Name2':event['queryStringParameters']['param2']
    }

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

    Shouldn't line 20 in the code be responseObject['headers'] = {}?

  • @AllenAcosta-o6g
    @AllenAcosta-o6g ปีที่แล้ว

    Can someone please explain how the output that was returned (in the browser) was formatted with a : following the transactionID, type, amount and message and a " " surrounding 5, PURCHASE, 500 and Hello from Lambda land ? I don't see any formatting in the code related to the formatting in the output.

    transactionID: "5"
    type: "PURCHASE"
    amount: "500"
    message: "Hello from Lambda land"

    Thank you in advance.

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

    I think there is a typo in responseObject[‘headers’] {}

  • @go_sh4627
    @go_sh4627 7 หลายเดือนก่อน

    I love this, this is very straight forward. But as a beginner in the field of AWS I just want a clarification. The method you used, why GET and not POST method?

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

    I have to create a REST Api using lambda.
    The lambda function has to complete does two tasks 1. Verify OKTA JWT token
    2. Make connection to Database and run a query and return result in JSON format.
    Here Creating New DB connection each request takes time. How to resolve this issue.

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

    Great video! Looks like queryStringParameters doesnt work in AWS with the new Python 3.10. Any ideas how to correct this?

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

    Great start, thank you for the video. Just asking, how did it worked for you without a = in responseObject['headers'] = {}?

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

      Hi Venkatesh,
      You have a very fine eye :) I believe I corrected this during the video editing process. The code link should contain the corrected code.
      Daniel

  • @Esamabdelhadi1982
    @Esamabdelhadi1982 7 หลายเดือนก่อน

    for some reason i'm getting this error
    {
    "message": "Missing Authentication Token"
    }
    im not sure what im doing wrong, but i followed the step by step instructions

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

    Please use snake_case in Python variables

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

    Can we build API gateway to send emails from SES without using Lambda

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

    What was the syntax error on line 25?

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

    How would a client access this programmatically?

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

    By the way, watch out for the number of connections to your database if your rest api is getting a lot of traffic, they generate a new connection for each request, wich could stop you from access the databasw

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

    Love this video. If only they gave examples like that in the official documentation, instead of just dry theory

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

      Thanks for the kind words heikg. I'm glad you found it helpful :)

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

    No stories , to the point , Thank you ! Subscribed

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

      Thanks dileep! And welcome to the channel :)

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

    Nice video

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

    Great tutorial. Helped me on how to handle event with python. I am using a Lambda function to perform Geocode and REST API for client to invoke the API

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

    wrr

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

    Well Explained. Simply Awesome. :)

  • @georgia-pro7357
    @georgia-pro7357 3 ปีที่แล้ว +1

    Thanks Dan , if i want lambda to run query against mysql db , then retrieve results in json format or do crud on db using lambda and api ,, how is that possible ?

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

      Hi Georgia!
      You can do this by combining the contents of this tutorial with these two other videos on how to set up a RDS MySQL DB + How to query it from Lambda.
      Hope this helps!
      th-cam.com/video/Ng_zi11N4_c/w-d-xo.html and th-cam.com/video/vyLvmPkQZkI/w-d-xo.html

  • @kailashlalchaudhary3867
    @kailashlalchaudhary3867 4 ปีที่แล้ว +1

    If we are getting Json inputs from front end then how we can handle it using Lambda funtion+API gateway and I need to store that data in RDS instance in table form

    • @BeABetterDev
      @BeABetterDev  4 ปีที่แล้ว +1

      Good question - stay tuned for an upcoming video on the topic!

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

    Hi , I would like to ask how to assign static ip address to APIGW ?

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

    Good tutorial. Tested and it works

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

    Thanks a lot🙏🙏
    Before watching this, I watched a couple of videos on lambda function, but still I couldn't understand what the hell lambda function is, you made it very clear...

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

    responseObject['headers']{} is causing 502 'Internal Server Error'

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

      Hi there, put a = before the {

  • @swathychandran8213
    @swathychandran8213 4 ปีที่แล้ว

    while trying this the lambda functions works successfully but the deployment of API throws an error “User does not have LISTWEBACL and AssociateWEBACL persmision for Web application Firewall regional” please help

  • @anishsahu6023
    @anishsahu6023 4 ปีที่แล้ว +1

    I am not getting response when I used invoke url with transaction details.
    It Only display "hello from lambda"

    • @betci148
      @betci148 4 ปีที่แล้ว +1

      Don't add the "transaction" resource and you should be good to go

    • @xosauce9193
      @xosauce9193 4 ปีที่แล้ว

      @@betci148 Im getting the same response as Anish. Do you mean we don't create a child resource? Why cant we create a child resource like in the video?

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

      @@xosauce9193 You need to deploy your lambda function. The 'hello from Lambda' is the original AWS and not your code

  • @前田幸洋-b1u
    @前田幸洋-b1u 3 ปีที่แล้ว +3

    05:42 In my case, "=" is required at line 25.

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

      Thank you for pointing this out!

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

      Thanks, your answer fixed my error.
      [ERROR] Runtime.UserCodeSyntaxError: Syntax error in module 'lambda_function': invalid syntax (lambda_function.py, line 25)
      Traceback (most recent call last):
      File "/var/task/lambda_function.py" Line 25
      responseObject['headers']{}
      --------------------------
      line 25 should be:
      responseObject['headers'] {} ==> responseObject['headers'] = {}

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

      @@klayliu3078 Hi, Is your response the same as his? my returns -->{
      "errorMessage": "'queryStringParameters'",
      "errorType": "KeyError",
      "stackTrace": [
      [
      "/var/task/lambda_function.py",
      7,
      "lambda_handler",
      "transactionId = event['queryStringParameters']['transactionId']"
      ]
      ]
      }

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

    Thanks a lot, this was really helpful!!!!! Have a nice day :)

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

      You're very welcome paul, and you too!

  • @beatalert123
    @beatalert123 9 หลายเดือนก่อน

    Awesome video..!! I am planning to create ETL data pipes using lambda + API gateway and then use step functions or MWAA to orchestrate the Lambda.

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

    Hey mind lowering your course to $10 like everyone else.

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

    Thanks a lot m8

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

      You're very welcome Shorsh!

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

    Commands not visible clearly..

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

    Kindly make video for below use case
    1: create ec2 instance with private network.
    2: run spring boot application with docker.
    3: setup Api gateway to create put and get request.
    4: access to it via api gateway get, put request from my laptop browser.
    I did not get any examle to access the private network instance ec2 using api gateway. Please guide me. It's urgent.

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

    Nice. Just in time. I just got done with Fast API.

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

    I create my APIGs via terraform, the concept of stages feels pointless as I have my production and staging environments on different AWS accounts.
    I do have multiple stage environments on one account; dev, qat, uat, pen. But these are setup as different resources in terraform where I use the workspaces feature to divide the different stages.
    Do you agree that stages feel useless for the described use case? Any advise is appreciated.

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

    What a fantastic tutorial! Great job!

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

    Really ur videos r so good

  • @nitesh2k6
    @nitesh2k6 4 ปีที่แล้ว +1

    Woow it is very nice explanation with example .. it help me to understand API with Lambda..
    Thanks

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

    Straight to the point. Thank you. I was wondering how we could add an authentication to the request as well. My request returns Missing Authentication Token. I don't want to make the API public as it is sending a separate request to a paid API.

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

    It could use updating, as AWS has changed its API Gateway UI substantially. GREAT WORK, THANKS!

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

      Thanks for pointing this out Kent! Time for a new video :)

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

      Go for it! If you need any help, I volunteer!

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

    Superb intro to using the API gateway, good tutoring skills!

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

    Informative video : how about also including how to troubleshoot errors . Get a "message" : "Internal server error" when hitting the API URL

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

    Getting the syntax error on responseObject['headers'] {} as mentioned on video, not sure how to fix this pls?

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

      Hi there,
      See comments section - many folks have corrected the issue!

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

    I am new to AWS and API, Is there a video where I can learn to make external API Calls using Lambda?
    Thanks

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

    Great work! Appreciate you showing the event structure right at the beginning which is usually skipped by many.

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

    thanks for sharing...it was really helpful.

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

    Man but like how good is this video?? You're insane! Thanks a lot! I was looking for something like this for a small learning project I have in mind with flutter and aws (just to learn aws because tbh its pretty daunting to me). Thanks a lot again!!

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

      Thank you so much for such a kind comment, I really appreciate it!

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

    Great explanation

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

    That’s some serious coding I have to get better at it

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

    Thank you for this! I'm getting a 403 "message": "Missing Authentication Token" and not sure what I need to do to fix it

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

      you should give your resource name along with url... {apiurl}/resourcename

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

      This is the right answer! Thanks for helping out Joseph!

  • @praveendumpala5672
    @praveendumpala5672 4 ปีที่แล้ว +1

    It was great to see and understand the basic flow with API Gateway + Lambda, thanks.

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

    Thanks so much.

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

    Thank you bro for keeping it clean and simple. I love it.

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

      Thanks Muse! Really appreciate the kind words.

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

    Would have been great if the example worked. Where is the authentication? Unsurprisingly I got "Missing Authentication Token'...

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

      OK, so this can work with no authentication (?) (although there are a few caveats that are well documented )

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

      Hi there,
      Yes it can work with no auth. Check out this video to add authorization: th-cam.com/video/al5I9v5Y-kA/w-d-xo.html

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

    Half Life 2 logo

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

    very helpful. just a query that i want to understand the code so can you provide me with any link which could help me understanding the code

  • @puteri8
    @puteri8 4 ปีที่แล้ว

    I tried to call the Invoke URL in my project, and i get an error like access to fetch "invokeurl" from "localhost URL" has been blocked by CORS policy. what should i do

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

    When you create you Lambda now you need to hit Deploy button. There is no Save anymore

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

    Very nice tutorial. New subscriber here :)

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

      Thanks Brad! Welcome to the channel :)

  • @SabbirAhmed-ev4rz
    @SabbirAhmed-ev4rz ปีที่แล้ว

    thanks man for this amazing video
    it helped me in completing my internship task
    keep up the good work

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

    Thank you

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

      You're very welcome manasa!

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

    Thanks

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

      Thank you so much for your generosity!

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

    Great video. But how to protect this api endpoint?

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

      Hi Manjunath! Great question! I actually have a new video coming out on this exact topic in the next week or so. Stay tuned!

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

    Great job with the video

  • @rajathkunder5162
    @rajathkunder5162 3 หลายเดือนก่อน

    You saved me

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

    Thank you so much! This was tremendously helpful!

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

    Gracias, me has salvado la vida compadre, desde Ecuador.

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

    to-the-point. Thx. Keep up the good work!

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

    Good one. To the point. Simple. Best way to dive in.

  • @RizwanAli-ki3bx
    @RizwanAli-ki3bx 4 ปีที่แล้ว

    How to check if request is get or post like we usualy do -- if request.method == 'POST':
    i am getting error: No keyword httpMethod

  • @filetranscribe
    @filetranscribe 5 หลายเดือนก่อน

    Thank you for this one