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"
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
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!
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
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.
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.
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".
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
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.
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
@@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
If you follow the video, the folder and the serverless.yml files are created when you run serverless create --template aws-nodejs --path {yourFolderName}
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 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
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!
A good video series - avoids the mistake of assuming everyone in the world is already familiar with AWS. Thanks!
Thanks Bob, I'm really glad you found this low lever video useful!
Most underrated channel EVER!!
Thanks so much Isha.
If anyone runs into issues with not seeing deployment in AWS console, make sure you add your server region under provider.
That's a great spot Seth
Great series, Very help full, Thank you so much Sam For you effort.
Love your channel. Thank you for the lessons.
I'm glad that I can help you learn new things
my name is Ricardo, i'm Brasilian. I'm watching your channel and am liking very
I'm glad you like the videos Ricardo
Nice one, love your accent btw. Are you from around the northwest of UK?
Thank you. It is really good video. Simple and Clean👍
hello, I'm a cloud learner, please what terminal are you using for your CLI, thank you, your content is really good
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"
Hello Sam, thanks for sharing
I got when I do sls deploy
AWS profile "eae-serverlessUser" doesn't seem to be configured
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
Amazing tutorial!
Glad it was helpful!
i was able to see the log in terminal but cant see on aws console online
Are you able to see the Lambda in the AWS Console? If not then maybe check that you're in the right region
@@CompleteCoding I used the code from github and it worked thanks
@@CompleteCoding I had this too but changing the region fixed it for me thanks
@risingStar Done that so many times before
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!
The issue was because of the AWS accout had to be activiting first (credit card register, telephone, etc)
Well done for figuring that out. Hope you enjoy the rest of the series
Thanks you So much Great !
Glad it was useful
My sls deploy is creating an object s3 bucket instead if creating a lambda
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
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.
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.
i'm give the cmd sls deploy lambda will created but s3 bucket not created. why how to solve this
You need to add some config to your serverless.yml file to tell it to create a s3 bucket.
Really great!!!
Thanks, glad you found it useful
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".
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
We should use serverless http or not ? what if we will not use this?
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.
@@CompleteCoding could you also cover middlewares,error handling, and security
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
@@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
Where do I get the serverless Project and the yaml file from?
If you follow the video, the folder and the serverless.yml files are created when you run
serverless create --template aws-nodejs --path {yourFolderName}
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
I found my problem, I used the different region after changed it I saw my function. Thank you again for the lesson.
@@roomdiTof I'm glad you found the lesson useful and well done for finding the issue yourself :)
@@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
@@lucywilson7600 This helped me! Thanks for commenting.
How can I get existed aws profile list?
aws configure list
or
nano ~/.aws/credentials
@@CompleteCoding Thanks!!!
Do a video on how to send youtube videos like this and get transcription back and rekognition
That's a really cool, inception-like idea. I'll add it to the list. Thanks
great!
My pleasure