AWS CloudFormation, API Gateway, Lambda & Dynamo DB. Rest API Implementation Ready to use Automation

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

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

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

    high quality content, smoothly explained, lots of appreciations to you.

  • @MukeshSharma-up9lc
    @MukeshSharma-up9lc 4 ปีที่แล้ว +1

    Only best video on api gateway cloud formation with very detailed example.
    GitHub link is also helpful to revisit all.

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

      I am glad it helped, Mukesh !
      Thanks for sharing your thoughts.

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

    Thank you. This is helpful for my interview !

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

    Thanks a lot Shashank, your example solved my problem on what i'm looking at

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

    Thank you for this tutorial video. This video is very helpful for us and clear all doubts. can you provide more video about how to add trigger point on lambda function through cloudformation and how to create api usage plan and more services which are use in api gateway..

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

    Very Helpful! Thanks a lot.

  • @파틴-o6x
    @파틴-o6x 2 ปีที่แล้ว +1

    Thank you for the great lecture!
    But may I ask you one question?
    This video explains how to connect one API and one Lambda
    What I want to do is map several APIs and Lambda 1:1 but I hope the template.yml file doesn't get dirty.
    For example, if I create and link the second API and Lambda, I have to write the same code as above.
    So this is going to be an n-fold increase in code length for n attempts
    Is there any way to reduce this?
    Please understand that my English is not good enough.

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

      Hi, Are you looking to parametrize what is hard-coded in template.yml?

    • @파틴-o6x
      @파틴-o6x 2 ปีที่แล้ว

      @@shashanksharmadevops Yes!
      I want to reduce the parameters of overlapping resources as much as possible

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

    can you update me how to check the endpoint via postman

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

    nicely explained

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

    Thanks

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

    Hi Shashank. If we have multiple AWS accounts like dev, qa, uat etc. then how we can make stack in cloud formation to deploy the things on all the environments.

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

      Hi Sourabh,
      Good question ... this made me look online for an answer.
      Pls see this blog if this could help:
      aws.amazon.com/blogs/infrastructure-and-automation/multiple-account-multiple-region-aws-cloudformation/
      A not-so-cool way would be using AWS CF CLI and execute same cf template on multiple accounts. Reminder, use assume role functionality rather than passing bare access and secret key through CLI.

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

    Hey thats a great tutorial..can you explain for GET also

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

    thanks for the video, I have one doubt. how do you create the cloud formation script by own?
    Which you gave in git hub.

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

      Hi Shyam, aws has a great online documentation for each service. I refer that. Hope this helps.
      docs.aws.amazon.com

  • @977anshul
    @977anshul 4 ปีที่แล้ว

    Hello Sir, I am facing issue cloud formation. I am trying to create an API-GATEWAY using cloud formation. but when i tried to test it. It was giving me this error.
    Wed Aug 05 11:42:10 UTC 2020 : Lambda invocation failed with status: 403. Lambda request id: a6a0864d-d6f4-4f13-95a7-32d5a9d81266
    Wed Aug 05 11:42:10 UTC 2020 : Execution failed due to configuration error:
    Wed Aug 05 11:42:10 UTC 2020 : Method completed with status: 500.
    But when i tried it manually, It is working fine.
    Can you please help me?

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

      Hi Anshul, Are you trying thing this in multiple and private subnets in the vpc?
      Please look into the cloud trail that may give you more specific errors.

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

    @Shashank, Clear Content, This is going to be my Reference Stack. I have one doubt, I didn't see the API-GateWay Trigger in Lambda UI in your Demo. any reason why it didn't show up?

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

      Hi
      I noticed that while doing this automation and tried looking for cli or CF approach to add a trigger but couldn’t find in the given time. 😀

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

      @@shashanksharmadevops 20:01 have you found why api gateway trigger isn’t showing in lambda UI and how to add it?

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

    Hello, how can I contact you.

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

    Do you have a class ?

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

    Do you have udemy course about how to create YAML file?

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

      You might get a yaml course online. Mostly it is about correct indentation.

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

    Have errors..

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

      Hi,
      Could you explain more as in what errors do you see?

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

      @@shashanksharmadevops these was errors:
      E3012 Property Resources/DynamoDBTable/Properties/ProvisionedThroughput/ReadCapacityUnits should be of type Long
      testingYTtemplate.yaml:56:9
      E3012 Property Resources/DynamoDBTable/Properties/ProvisionedThroughput/WriteCapacityUnits should be of type Long
      testingYTtemplate.yaml:57:9
      W3005 Obsolete DependsOn on resource (APIGatewayRestAPI), dependency already enforced by a "Ref" at Resources/APIGatewayResource/Properties/RestApiId/Ref
      testingYTtemplate.yaml:77:9
      W3005 Obsolete DependsOn on resource (APIGatewayRestAPI), dependency already enforced by a "Fn:GetAtt" at Resources/APIGatewayResource/Properties/ParentId/Fn::GetAtt
      testingYTtemplate.yaml:77:9
      E3012 Property Resources/APIGatewayMethod/Properties/MethodResponses/0/StatusCode should be of type String
      testingYTtemplate.yaml:86:11
      E3012 Property Resources/APIGatewayMethod/Properties/Integration/IntegrationResponses/0/StatusCode should be of type String
      testingYTtemplate.yaml:90:13
      W3005 Obsolete DependsOn on resource (APIGatewayResource), dependency already enforced by a "Ref" at Resources/APIGatewayMethod/Properties/ResourceId/Ref
      testingYTtemplate.yaml:97:9
      ________________________________________________________
      You don't need these DependsOn, you can remove it. Without that is working.
      I didn't check errors for DynamoDB ----I didn't need in my case.
      ZipFile it's not supported in Python 3.8 - Also here I have error when I want to create stack.
      **************************************************************************************************
      I need solution to automate and put Lambda function in S3Bucket (you mention it), instead of using ZipFile.
      And if you have multiple methods for example GET( /users, /stock ) and DELETE. How to write it ?
      *******************************************************************************************************
      If is possible, make new branch for this update and linked it here.
      Thank you.

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

      @@mostarbosniandherzegovinaall Hi,
      I executed the CF template as it is and didn't see any error related to dependency or Dynamo DB. Is it safe to assume that may be some typo while you were modifying the template would have caused the issue?
      I tried zipfile with python3.8 and you are correct it doesn't work with python3.8 yet. Instead of inline code, please use below snippet to upload artifacts from S3 bucket.
      ________________________________________________________
      Code:
      S3Bucket: 'BUCKET-NAME'
      S3Key: 'COPY/KEY/FROM/S3OBJECT'
      _________________________________________________________
      Did you get any success with adding multiple methods? if yes, please could you share?

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

      @@shashanksharmadevops Hi,
      I didn't find still solution for multiple methods, but when I find it, I will upload code.

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

      Thanks much!!