AWS API Gateway tutorial ( Latest)

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

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

  • @sauraabh
    @sauraabh 8 หลายเดือนก่อน +4

    This is the BEST Tutotrial on AWS API Gateway!!

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

      Thanks mate. Glad that helps you. 👍👍👍

  • @technologicalvivek7510
    @technologicalvivek7510 2 วันที่ผ่านมา

    Wonderful lecture .Thanks

  • @atulvairale9415
    @atulvairale9415 10 หลายเดือนก่อน +3

    very good tutorials. Plz create video on ECS also . Thank you very so much

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

      Thanks mate. Stay on touch. We do more in this year.

  • @potatocasadith411
    @potatocasadith411 2 หลายเดือนก่อน +1

    Love this little man so much

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

      Thanks mate. 🤞🤞🤞

  • @jonas7438
    @jonas7438 10 หลายเดือนก่อน +2

    Amazing explanation! Thanks a lot

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

      Thanks mate. Glad that helps you 👍👌👌👌

  • @elClubdelas7Cifras
    @elClubdelas7Cifras 8 หลายเดือนก่อน +2

    completed 100%

    • @lovetocode4486
      @lovetocode4486  8 หลายเดือนก่อน +1

      Glad that helps. Thx mate

  • @raoraghavendrak5576
    @raoraghavendrak5576 2 หลายเดือนก่อน +1

    Very good explanation

  • @subgero
    @subgero 3 หลายเดือนก่อน +1

    it helps me a lot!! Ty!

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

      Great to hear 👍👍👍👍

  • @pablomarques4772
    @pablomarques4772 หลายเดือนก่อน +1

    Nice!!!!!!!

  • @DrJub
    @DrJub 11 หลายเดือนก่อน +2

    Thanks so you know it's it's possible to expose a intranet service securly via API gateway. Would I need a vpc that connects to the intranet and a vpc type gateway request?

    • @lovetocode4486
      @lovetocode4486  11 หลายเดือนก่อน +2

      Hi @DrJub,
      As far as you create REST API (Private) , It is not expose to internet(public). Then you can use a VPC Links to access the private API Gateway.
      This could help. please check: aws.amazon.com/blogs/compute/understanding-vpc-links-in-amazon-api-gateway-private-integrations/

  • @hemantsah8567
    @hemantsah8567 11 หลายเดือนก่อน +2

    Hey Is it possible using SAM that I can keep some api endpoint unauthorized while some authorized. I am trying it with Congito authorizer

    • @lovetocode4486
      @lovetocode4486  11 หลายเดือนก่อน +2

      Hi @hemantsah8567 ,
      Yes it is possible. Create a Congito authoriser and assign the authoriser only for the end point you want to secure. eg: there could be GET and POST. So you just need the POST end point to be secured. Then just set the authoriser for the POST end point. Have done a video for Cognito authoriser and this should help th-cam.com/video/9crTLAT_4uY/w-d-xo.html
      Thanks. :)

  • @srinathvr9019
    @srinathvr9019 2 หลายเดือนก่อน +3

    next time when u do demos pls use dont use dark mode. cant see anything clearly

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

      Really appreciated your comment. It is best comment to improve. Thanks

  • @go_sh4627
    @go_sh4627 9 หลายเดือนก่อน +2

    Good morning, firstly thank you for this video and second, I am struggling with an internal server error, what could be the reason behind this?
    {"message": "Internal server error"}

    • @lovetocode4486
      @lovetocode4486  9 หลายเดือนก่อน +1

      Hi Mate,
      Please check the cloudWatch log of the lambda function? That should show the actual error. Let me know how it goes.

  • @naveenchalageri6997
    @naveenchalageri6997 7 หลายเดือนก่อน +1

    Good video. I have a doubt what if I have an API currently on Ec2 instance or running on EKS . do we need API gateway or how can we use api gateway in that case?

    • @lovetocode4486
      @lovetocode4486  7 หลายเดือนก่อน +1

      Hi Naveen,
      It is totally depend on what is the existing API. Does it have auth, rate limit, quota etc. With AWS API Gateway you will all these thing very easy. It is almost how much effort to move your API to API Gateway.
      For me, If the current API does the work and serve the purpose, I will stick with that. However I will start any new API end points using AWS API Gateway.

  • @BallersEdmonton
    @BallersEdmonton 10 หลายเดือนก่อน +2

    Hello - thank you for our video!
    I have an architecture question. If I have a public API and private API on the same server exposed by an internal ALB - the public API is exposed by a public API Gateway (resides outside the VPC), where as the private api is exposed by a Private API Gateway which is accessible through a VPN. Both of the API Gateways point to the internal ALB. Does this set up make sense to your or is there a better way to have a private API and publci API accessible to end users on the same server?

    • @lovetocode4486
      @lovetocode4486  10 หลายเดือนก่อน +1

      Hi mate,
      Interesting question. Just wondering how you load balance the traffic between private and public resources with one ALB. eg: there could be many requests come to public while few requests to private. With one ALB, how do you balance the traffic.
      for personally, I would go with two load balances in the case to make the system isolate from public and private resources. That make easy to apply good practice like security.

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

      @@lovetocode4486 Hi - thanks a lot for your reply. Your answer makes sense if I had a separate server or target group for each api but I have a Monolith running on ECS.
      So whether I have one load balancer or two the scaling would still be the same no?
      I guess I'm wondering whether there is still security benefit in the setup I'm explaining such that the Private Admin API endpoints can't be invoked without being on the VPN and any requests to do so would be stopped outside the VPC.
      Once on the VPN the end user is able to invoke the privatr endpoint by having access to the private API gateway but both his request and the public API endpoint requests go through the same load balancer after being authorised by a Cognito authoriser.
      Sorry for the long reply! It's my first time doing this so your answer is really helpful!!

  • @nimathi87587
    @nimathi87587 8 หลายเดือนก่อน +2

    I want to send multiple status code based on my logix. for eg: 404 on Not found below my code.
    if check_keyword(event):
    return {"statusCode": 404, "message": "Missing keyword"}
    on postman the response comes as i send but postman status is 200. how i make that postman status also 404 or other status based on my return statuscode value ?... Please help me out

    • @lovetocode4486
      @lovetocode4486  8 หลายเดือนก่อน +1

      Hi Mate,
      What type of integration you are using?
      If it is "Lambda Proxy Integration", Then you need to send the payload as below which is you are already doing
      `
      const response = {
      statusCode: 404,
      body: "ANYTHING YOU WISH TO PASS"
      };
      return response;
      `
      If you are using "Non-Proxy Integration", then please check this video. This has more information on how to map the parameters, header etc.
      th-cam.com/video/o98qYUFSQbc/w-d-xo.html

  • @avalagum7957
    @avalagum7957 8 หลายเดือนก่อน +1

    Thank you. One question: how to specify /users/{userId}?

    • @lovetocode4486
      @lovetocode4486  8 หลายเดือนก่อน +1

      Hi mate,
      Do you mean that specifying in the postman request or creating end point in the API gateway?

  • @suganthiaravind4335
    @suganthiaravind4335 7 หลายเดือนก่อน +2

    Can an api gateway be between ALB and the web service? Are there any benefits of this architecture?

    • @lovetocode4486
      @lovetocode4486  7 หลายเดือนก่อน +1

      Hi Mate,
      Yes, you can add Load Balance between Api gateway and the services. API Gateway support 10,000 request (This is a soft limit and you can request more from AWS) per seconds. The Load balancer can be used to distribute the load between each service instance (EC2 etc).
      Having API Gateway in the front addresses the a cross-cutting concerns (managing security, routing, and transformations etc) while load balance gives fast responses to the clients by distribution the load

  • @giridharachar7465
    @giridharachar7465 3 หลายเดือนก่อน +1

    Hi, I am completely new to AWS and APIs ..does this course help beginner like me ? Does this cover things like design principles , CRUD operations etc ? Thanks in advance

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

      Hi mate, this video gives beginners to advance knowledge of AWS api gateway and best practices of using api. thanks

  • @NavabShariffShaik
    @NavabShariffShaik 10 หลายเดือนก่อน +1

    can we able to capture how much data transferred from particular client ?

    • @lovetocode4486
      @lovetocode4486  9 หลายเดือนก่อน +1

      Hi mate, I am doubt that it gives to check how much data transfer. it shows how many request.
      One place to check is the access logs of api gateway. Hopefully you can find how much data per request.

  • @rohanmanugade8464
    @rohanmanugade8464 9 หลายเดือนก่อน +1

    cant we connect RDS Mysql DB to the API gateway directly ?

    • @lovetocode4486
      @lovetocode4486  9 หลายเดือนก่อน +1

      Hey mate,
      Best way connect RDS is use API Gateway with Lambda. Adding SQS is useful if you want to decouple the services.

  • @sameerparab8210
    @sameerparab8210 3 หลายเดือนก่อน +1

    Can you show - How will add authentication and authorization to this ?

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

      Hey mate, there are couple of ways to add auth to api gateway. This is one way using Cognito: th-cam.com/video/9crTLAT_4uY/w-d-xo.html
      Other way is using Lambda authoriser: th-cam.com/video/rRQbVJhlpC4/w-d-xo.html

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

    hello, can I use it with theg.sheet api connector module?

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

      Hey mate,
      As far as that support http, then yes.

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

      @lovetocode4486 I'm not sure I understand, could you recommend a link where I can read more explanations

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

      @@lovetocode4486 hello I don't understand anything about appscript, the code, to integrate the API of my seller central so I would like to use the module API connector, do you know it? Could I import information to calculate my margins automatically?
      can I send you an email ?

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

    how to set custom header ?
    example :
    authorization : Bearer xxxx
    x-token : xxx

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

      Do you mean that setting the header when you trigger the api from like Postman, front end ui?

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

      you can pass all the headers come from client to lambda. Please check this repost.aws/knowledge-center/custom-headers-api-gateway-lambda
      you need to update mapping templates.
      ```
      {
      "method": "$context.httpMethod",
      "body" : $input.json('$'),
      "headers": {
      #foreach($param in $input.params().header.keySet())
      "$param": "$util.escapeJavaScript($input.params().header.get($param))"
      #if($foreach.hasNext),#end
      #end
      }
      }
      ```

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

      Please check this video. This shows how to set custom headers: th-cam.com/video/o98qYUFSQbc/w-d-xo.html

  • @nimaakhavi4408
    @nimaakhavi4408 7 หลายเดือนก่อน +1

    why did u creat mok api , you missed it

    • @lovetocode4486
      @lovetocode4486  7 หลายเดือนก่อน +1

      Hi Mate, The mock api is for just demonstration. If you are likely to know more, then follow this list th-cam.com/video/c3J5uvdfSfE/w-d-xo.html