Deploy NodeJS Express API as AWS Lambda Function in 20 minutes

Поделиться
HTML-код
  • Опубликовано: 1 дек 2024

Комментарии • 59

  • @sunnypawar01
    @sunnypawar01 3 года назад +3

    Awesome....I was struggling to start my express node js in aws from last 3 week, this video solved all my problems, Thanks a lot!!!

  • @jimingeorge4591
    @jimingeorge4591 4 года назад +5

    Thanks a lot for the video. A small feedback from my side would be for you to talk a lil more louder and clearer. Everything else was really good. Thanks again man.

    • @csbeam
      @csbeam  4 года назад +1

      Thanks for your feedback, yes the audio was pretty bad, this is my first time with OBS studio and recording stuffs. Planning to create more videos with better content. Thank you again

  • @labixiaoxin1307
    @labixiaoxin1307 2 года назад

    Thanks a lot. This is working.

  • @Lohithnimmala
    @Lohithnimmala 4 года назад +4

    The mistake you did about app listening to localhost, actually even that is something to learn, thanks for making that mistake :)

  • @ocoocososococosooooosoococoso
    @ocoocososococosooooosoococoso 3 года назад

    THis is what I was exactly looking for! Thank you so much!!

  • @carlosviniciusananias
    @carlosviniciusananias 3 года назад

    great video!! thanks

  • @tadstratford3153
    @tadstratford3153 3 года назад

    Thank you! I have referenced this again and it is still really helpful.

  • @srinivasnudurupati5752
    @srinivasnudurupati5752 4 года назад +1

    I followed the same steps, but after executing npm run deploy command process executed successfully but i dont see endpoints, it is showing as None. I am using mumbai region in lambda file and created keys for mumbai region only "Service Information
    service: aws-lambda-node-tut
    stage: production
    region: ap-south-1
    stack: aws-lambda-node-tut-production
    resources: 2
    api keys:
    None
    endpoints:
    None
    functions:
    None
    layers:
    None" can you please help me

    • @jskr456
      @jskr456 4 года назад

      upload your code in GitHub and ping me ill check once.
      for me it's coming successfully

    • @Abhiabhinandan00
      @Abhiabhinandan00 4 года назад

      In your serverless.yml file change "function" to "functions". This worked for me.

  • @danyukiyo4897
    @danyukiyo4897 4 года назад +1

    May I know how you get your node_modules and also source code uploaded on lambda? my node_modules are quite large (like 400mb++), so AWS keep prompt me error for this (it only allows file for

  • @movildrivesystems5176
    @movildrivesystems5176 4 года назад

    Hi there
    Im getting an error deploying a function with node dependancies. I looks importing a node module in lambda code editor (also in the terminal locally in the EC2 server) does not find the module, even if it is zip
    "errorType": "Runtime.ImportModuleError",
    "errorMessage": "Error: Cannot find module 'mailgun-js'",
    "trace": ...
    Do you have any tips? The index.js looks lik:
    const mailgun = require("mailgun-js");
    exports.handler = async (event, context, callback) {
    const DOMAIN

    • @pavanpavu6500
      @pavanpavu6500 4 года назад

      Try to install node modules locally like npm I maligun-js and then zip and upload to lambda . It will work

  • @ponnampalamathithan
    @ponnampalamathithan 4 года назад

    You have saved my time, Tnx

  • @sunilbhatia1546
    @sunilbhatia1546 4 года назад

    thanks man this tutorial helps me a lot

  • @aseemsavio6696
    @aseemsavio6696 3 года назад

    I keep getting Uploaded file must be a non-empty zip (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: 5da5428e-d0bc-4dba-bd6d-d3a006510024; Proxy: null) error.
    When I checked the S# bucket where the zip gets uploaded, the zip is present with all the files and directories.

  • @samyakjain7300
    @samyakjain7300 4 года назад

    thanks for making that trivial mistake! great tutorial

  • @avgsteve
    @avgsteve 4 года назад +1

    Great tutorial ! I wonder how did you learn this ? Do you recommend any resource for learning or demo how to build other projects on AWS Lambda? Thanks

    • @jeromelochlan8051
      @jeromelochlan8051 3 года назад

      i know I am quite off topic but do anyone know a good website to stream new tv shows online ?

  • @sergiao155
    @sergiao155 4 года назад

    Great job ! I really appreciate it !

  • @abutahir1544
    @abutahir1544 2 года назад

    tum accha kaam kiya hai cs beam bhai

  • @wjsilva85
    @wjsilva85 4 года назад

    Awesome! Thanks a Lot for this vídeo. It is really life saving.

  • @ivanfranciscoj
    @ivanfranciscoj 3 года назад

    What a great tutorial!

  • @nabaraj123
    @nabaraj123 4 года назад

    I was trying to add mongodb atlas in app.js file using mongoose but getting
    {
    "message": "Forbidden"
    }
    any reason for this? Or we need to handle separately

    • @csbeam
      @csbeam  4 года назад +1

      Check your connection string. Usually MongoDB Atlas you need to enable your ip address or specify the 0.0.0.0 ip address to access the db from the internet.
      Also you need to add the username and password in the connection string.

  • @JagoManushJago
    @JagoManushJago 4 года назад

    The deployment package of your Lambda function "Projectfile name" is too large to enable inline code editing. However, you can still invoke your function.

  • @erickbroos7233
    @erickbroos7233 3 года назад

    thank you bro

  • @SpencerDavis2000
    @SpencerDavis2000 4 года назад

    thank you very much. super helpful tutorial :-)

  • @HabeshaDeveloper
    @HabeshaDeveloper 4 года назад

    thats amazing

  • @arshdeepkumar2586
    @arshdeepkumar2586 3 года назад

    how to remove /production at last I don't want users to add /production at then end of my website

  • @VikashKumar-zl8lc
    @VikashKumar-zl8lc 4 года назад

    Hi, Thanks for the tutorial. I am getting below error -
    Serverless Error ---------------------------------------

    The security token included in the request is invalid.
    I have configured 'aws configure' and env variables like - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
    Thanks

    • @pavanpavu6500
      @pavanpavu6500 4 года назад

      It looks like your access key and secret are wrong. Try checking again . If it's crct then it might be issue with yml file

  • @abhishekkadam2999
    @abhishekkadam2999 3 года назад +1

    That poor _'Return'_ key.

  • @ayushkwal
    @ayushkwal 3 года назад

    Showing error when trying to open file from app using res.render

  • @sfincione2000
    @sfincione2000 4 года назад

    Nice. 👍🏼

  • @ayushkwal
    @ayushkwal 3 года назад

    What would I need to do incase of render()

  • @VimalKumar-dl5jb
    @VimalKumar-dl5jb 4 года назад +1

    I didn't get any endpoints and function

    • @chelhelg
      @chelhelg 4 года назад

      I have this question too!

    • @Abhiabhinandan00
      @Abhiabhinandan00 4 года назад +1

      In your serverless.yml file change "function" to "functions". This worked for me.

  • @amanngoel
    @amanngoel 4 года назад +1

    can you help me i am not getting any endpoints

    • @Abhiabhinandan00
      @Abhiabhinandan00 4 года назад +1

      In your serverless.yml file change "function" to "functions". This worked for me.

  • @guscisco
    @guscisco 4 года назад +1

    Thank you man

    • @csbeam
      @csbeam  4 года назад

      I'm glad it helped you.

  • @raviswam86
    @raviswam86 4 года назад

    Hi, thanks for your tutorial - i am getting this error on trying to npm run deploy -npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! appname-api@1.0.0 deploy: `serverless deploy`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the appname-api@1.0.0 deploy script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    Any help pls.

    • @csbeam
      @csbeam  4 года назад

      Can't figure out the exact reason as this is a common npm error, Try deleting package-lock.json file and npm_modules folder and reinstall dependencies. Also try cloning my repo (link in the description of this video) and modify the logic to your rquirements.

  • @ayushkwal
    @ayushkwal 3 года назад

    Sir, please solve my Issue: It is showing error in case of res.render()

  • @javierpatricio4733
    @javierpatricio4733 3 года назад

    Crack!!!

  • @ayushkwal
    @ayushkwal 3 года назад

    It is showing error in case of res.render()

  • @VimalKumar-dl5jb
    @VimalKumar-dl5jb 4 года назад

    where can i find location

  • @dexterprogramming7363
    @dexterprogramming7363 4 года назад +2

    your voice is low and discomfortable

  • @realarslan33
    @realarslan33 Год назад

    You over complicated it

  • @mohmadhaidardevjiyani68
    @mohmadhaidardevjiyani68 4 года назад

    No one able to read text on your video

    • @csbeam
      @csbeam  4 года назад +1

      Thanks for the feedback. This is my first video. I'll try to create more quality content in my future videos. I hope the repo in the description can help you.

    • @mohmadhaidardevjiyani68
      @mohmadhaidardevjiyani68 4 года назад

      @@csbeam appreciate your work 👍

  • @realarslan33
    @realarslan33 Год назад

    You over complicated it