Creating a new Serverless Project and deploying a Lambda

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

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

  • @petermasse60
    @petermasse60 8 месяцев назад

    Sam, you are absolutely the best! Your videos are so easy to follow, and in less than 10 minutes, I feel like I have conquered my work!

  • @BobWalsh47hats
    @BobWalsh47hats 5 лет назад +1

    A good video series - avoids the mistake of assuming everyone in the world is already familiar with AWS. Thanks!

    • @CompleteCoding
      @CompleteCoding  5 лет назад +1

      Thanks Bob, I'm really glad you found this low lever video useful!

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

    Most underrated channel EVER!!

  • @bd-lo4ee
    @bd-lo4ee 3 года назад +2

    If anyone runs into issues with not seeing deployment in AWS console, make sure you add your server region under provider.

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

    Great series, Very help full, Thank you so much Sam For you effort.

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

    Love your channel. Thank you for the lessons.

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

      I'm glad that I can help you learn new things

  • @157157ricardo
    @157157ricardo 3 года назад

    my name is Ricardo, i'm Brasilian. I'm watching your channel and am liking very

  • @Vin-p9i
    @Vin-p9i Год назад

    Nice one, love your accent btw. Are you from around the northwest of UK?

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

    Thank you. It is really good video. Simple and Clean👍

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

    hello, I'm a cloud learner, please what terminal are you using for your CLI, thank you, your content is really good

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

      I'm using iTerm2. It's a mac terminal
      If you're talking about running things like "sls deploy" then just install serverless globally
      "npm i -g serverless"

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

    Hello Sam, thanks for sharing
    I got when I do sls deploy
    AWS profile "eae-serverlessUser" doesn't seem to be configured

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

      Have you configured the profile correctly? You can check by opening teh file
      ~/.aws/credentials
      and seeing if there is something the looks like
      [eae-serverlessUser]
      aws_access_key_id=HJKHJKHJKHKJHJKHKJ
      aws_secret_access_key=gerhguoshgutsg4358t3h598hst6

  • @MK-Turtles
    @MK-Turtles 4 года назад

    Amazing tutorial!

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

    i was able to see the log in terminal but cant see on aws console online

    • @CompleteCoding
      @CompleteCoding  3 года назад +2

      Are you able to see the Lambda in the AWS Console? If not then maybe check that you're in the right region

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

      @@CompleteCoding I used the code from github and it worked thanks

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

      @@CompleteCoding I had this too but changing the region fixed it for me thanks

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

      @risingStar Done that so many times before

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

    Hi Sam. Thanks for sharing.
    Could you provide information about if I have to register something else after having registered the user serverlessUser in AWS? This is because when I wirte "sls deploy" command, it displays this:
    "Serverless: Packaging service...
    Serverless: Excluding development dependencies...
    Serverless Error ---------------------------------------
    -------------------------------
    The AWS Access Key Id needs a subscription for the service"
    Thanks!

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

      The issue was because of the AWS accout had to be activiting first (credit card register, telephone, etc)

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

      Well done for figuring that out. Hope you enjoy the rest of the series

  • @OmpalSingh-pw7mc
    @OmpalSingh-pw7mc 3 года назад

    Thanks you So much Great !

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

    My sls deploy is creating an object s3 bucket instead if creating a lambda

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

      It creates an S3 bucket that contains all of the deployment config. It will also create the Lambdas. If you can't see them check the region you deployed to. If you didn't add a region to your provider the it will be deployed to North Virginia

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

    Hello, wanted to ask about the size limit of AWS Lambda, 50MB for zipped version and 250MB for unzipped version. I uploaded one project which was of size 85MB (because of prisma ORM node-module) through serverless. I'm unable to understand how is that working because serverless creates a zip file and the limit of that is only 50MB.

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

      You have two options:
      1. use a bundler like webpack or esbuild to only include the code that you use from those libraries
      2. add the Prisma ORM to a lambda layer. That way it isn't included in your lambda zip.

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

    i'm give the cmd sls deploy lambda will created but s3 bucket not created. why how to solve this

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

      You need to add some config to your serverless.yml file to tell it to create a s3 bucket.

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

    Really great!!!

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

    I have "serverless-webpack" installed, but my "sls deploy" command still required a "webpack" installation. does anyone know why? I'm confused because other local serverless development videos i've followed online (like this one) didn't seem to require "webpack".

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

      Whilst you don't need webpack, it streamlines your Lambdas.
      If you don't then ever lambda you create contains all of the code in your repo. This means longer upload times and cold starts.
      If you don't want to use it just remove the serverless-webpack from the yml file

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

    We should use serverless http or not ? what if we will not use this?

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

      Are you talking about adding a http event to the lambda? You need to add that if you're wanting to create an API endpoint for your lambda.
      If you don't add any events then you will still create a lambda, but you can't hit it with an API request. This can still be useful for lots of other applications though.

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

      @@CompleteCoding could you also cover middlewares,error handling, and security

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

      Have a look at the Serverless Framework playlist I have on my channel. It has videos on APIs, S3, Dynamo, error handling, middleware (Lambda Hooks) and security
      ruclips.net/p/PLmexTtcbIn_gP8bpsUsHfv-58KsKPsGEo

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

      @@CompleteCoding Thanks man you are the savior, I have got this serverless project in my organization, im trying to hands on it but they are using sql as a database

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

    Where do I get the serverless Project and the yaml file from?

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

      If you follow the video, the folder and the serverless.yml files are created when you run
      serverless create --template aws-nodejs --path {yourFolderName}

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

    Hi. Thank you for the video.
    I did repeat step by step of your lesson. But I see that my file is on storage s3 and don't seen on the lambda function list.
    snippets command-line log
    Serverless: Uploading CloudFormation file to S3...
    Serverless: Uploading artifacts...
    Serverless: Uploading service myserverlessproject.zip file to S3 (389 B)...
    Service Information
    service: myserverlessproject
    stage: dev
    region: us-east-1
    stack: myserverlessproject-dev
    resources: 6
    api keys:
    None
    endpoints:
    None
    functions:
    hello: myserverlessproject-dev-hello
    layers:
    None

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

      I found my problem, I used the different region after changed it I saw my function. Thank you again for the lesson.

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

      @@roomdiTof I'm glad you found the lesson useful and well done for finding the issue yourself :)

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

      @@roomdiTof Thank you for posting this- I had the same issue. I changed the region in serverless.yml to match the region I had setup on AWS and it worked. Here is the region code list should anyone else need it github.com/adv4000/aws-region-codes

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

      @@lucywilson7600 This helped me! Thanks for commenting.

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

    How can I get existed aws profile list?

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

      aws configure list
      or
      nano ~/.aws/credentials

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

      @@CompleteCoding Thanks!!!

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

    Do a video on how to send youtube videos like this and get transcription back and rekognition

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

      That's a really cool, inception-like idea. I'll add it to the list. Thanks

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

    great!