Deploying to AWS Lambda with Serverless + GitHub Actions (Modern CI/CD) | Serverless Saturday

  Рет қаралды 33,316

Jackson Yuan

Jackson Yuan

Күн бұрын

In today's Serverless Saturday tutorial, we'll be going over how to set up a CI/CD pipeline using GitHub Actions and the Serverless Framework, to deploy your serverless function to AWS Lambda.
Other Serverless Saturday tutorials:
Creating your first AWS Lambda Function: • Creating your first AW...
Intro to Serverless: • What is Serverless Com...
Sections:
0:00 - Intro
0:23 - Serverless Framework & GitHub Actions Intro
1:02 - Creating the IAM User
4:13 - Installing Dependencies & Boilerplate Code
5:23 - Understanding the starter serverless.yml file
8:21 - Writing the Lambda code
9:15 - Setting up CI/CD using GitHub Actions
12:59 - Verifying/testing our Deployment
17:05 - Wrap up
Serverless Framework: www.serverless.com/
GitHub Actions: github.com/features/actions
Source Code: github.com/jacksonyuan-yt/bas...
Found this video helpful? Feel free to support this channel here: ko-fi.com/jacksonyuan
#awslambda #nodejs #serverless #aws #githubactions

Пікірлер: 37
@ephilihp
@ephilihp 2 жыл бұрын
Thank you for having an actually useful tutorial! So glad to find actually useful information after wading through the cesspool of marketing slide decks.
@j0Nt4Mbi
@j0Nt4Mbi 3 жыл бұрын
Wow Jackson, Thanks for sharing the knowledge!!
@jameswilliam4570
@jameswilliam4570 3 жыл бұрын
Thank you! This was a great introduction to Serverless and Github Actions!
@jacksonyuan7744
@jacksonyuan7744 3 жыл бұрын
I'm glad you found it helpful! Let me know if there's any other content/tutorials you'd like to see!
@jameswilliam4570
@jameswilliam4570 3 жыл бұрын
@@jacksonyuan7744 I'm having a lot of difficulty with environment variables. Serverless keeps resetting the one's in my lambda functions on AWS and I also don't want to make API's visible on GitHub. Maybe I'm not the only having difficulty with this right now!
@jacksonyuan7744
@jacksonyuan7744 3 жыл бұрын
@@jameswilliam4570 I briefly go over how to set env variables using the Serverless framework here: kzbin.info/www/bejne/gV7GYXSlgtKUhbc. This works well if your variable isn't holding a secret value. For storing secrets and using them in your Lambda function, I would recommend trying a service such as AWS Secrets Manager: aws.amazon.com/secrets-manager/. I hope that helps!
@thinhlpg
@thinhlpg 9 ай бұрын
Thank you! This is awesome!
@dundasbrands
@dundasbrands 3 жыл бұрын
Thanks so much super helpful!
@marybeliveau2562
@marybeliveau2562 3 жыл бұрын
Extremely helpful, thank you!!
@jacksonyuan7744
@jacksonyuan7744 3 жыл бұрын
Glad I could help!
@samtonijourney
@samtonijourney Жыл бұрын
makes my day. thanks!
@hazadan123
@hazadan123 3 жыл бұрын
Thanks for the tutorial, really helpful. you got one more subscriber :)
@jacksonyuan7744
@jacksonyuan7744 3 жыл бұрын
Thanks for the feedback and subscription! Let me know anytime if there's other content/tutorials you'd like to see!
@armandocarracedovelazquez672
@armandocarracedovelazquez672 3 жыл бұрын
Thanks you!
@lutdootutdoo5342
@lutdootutdoo5342 3 жыл бұрын
Very helpful! Thanks
@jyotindratavanoji9929
@jyotindratavanoji9929 2 жыл бұрын
For developers who are trying this out in 2022, please add 1 more policy in you IAM group : awsS3FullAccess , or else it will give out a error in deployment of the serverless.yaml file. S3 bucket permission denied ! . 🧑‍💻❤️
@arjunbk5825
@arjunbk5825 Жыл бұрын
Thank You
@arjunbk5825
@arjunbk5825 Жыл бұрын
If you face with an Error: "ROLLBACK_COMPLETE state and can not be updated". Try deleting the stack with "aws cloudformation delete-stack --stack-name "
@007eumamerda
@007eumamerda Жыл бұрын
Thank you
@abhinaypratap3889
@abhinaypratap3889 Жыл бұрын
good and best
@deepikajha3757
@deepikajha3757 3 жыл бұрын
Thanks man for this tutorial it is very helpful. Can you also post video on triggering lamda on sns topic and sending mail to subscriber using SES
@jacksonyuan7744
@jacksonyuan7744 3 жыл бұрын
Thanks for the suggestion! I'll definitely look into it :)
@ernes4705
@ernes4705 2 жыл бұрын
Thanks you, is a good video. I have a question: What if I have several serverless files, how can I reference them using this github action?
@user-xb7pf6ry6m
@user-xb7pf6ry6m 4 ай бұрын
Thank you for the tutorial. I don't understand why in the GitHub Action, we didn't specify the line for installing the serverless package, which is useful for deployment.
@lesliechiu1437
@lesliechiu1437 2 жыл бұрын
hi, I followed your steps and have two errors, and I fixed them; first, it showed" s3:CreateBucket Access Denied", I added S3FullAccess to that IAM User group; second, i had a "ROLLBack Complete" error, then I deleted it in AWS console and re-run the job. Finally problems resolved.
@ianramsianto7051
@ianramsianto7051 Жыл бұрын
by delete it, do you mean delete stack in CloudFormation?
@travelingvibes7796
@travelingvibes7796 2 жыл бұрын
Hi sir i am facing the error while deploy through github action and the error is : " An error occurred: ServerlessDeploymentBucket - API: s3:CreateBucket Access Denied." please help me
@olehbilykh4695
@olehbilykh4695 2 жыл бұрын
If u've found the fix, pls reply
@dipakbhise4779
@dipakbhise4779 2 жыл бұрын
Please help me this error is showing i have also added serverless-dotenv-plugin this in serverless.yml file Error: Serverless plugin "serverless-dotenv-plugin" not found. Make sure it's installed and listed in the "plugins" section of your serverless config file. Run "serverless plugin install -n serverless-dotenv-plugin" to install it.
@nicodemus399
@nicodemus399 2 жыл бұрын
can I do this for a rest api ?, how would I do it for the npm install?
@lesliechiu1437
@lesliechiu1437 2 жыл бұрын
hi, i just followed your steps. but I got this error : CREATE_FAILED: ServerlessDeploymentBucket (AWS::S3::Bucket) API: s3:CreateBucket Access Denied Do we need to S3 in this video?
@kumarbanavathu7716
@kumarbanavathu7716 Жыл бұрын
The bucket name should be globally unique
@sebascardonac
@sebascardonac 2 жыл бұрын
How Can I do to configúrate The serverless yml to dont save the source code into S3?
@Youdude2
@Youdude2 3 жыл бұрын
Can this be done without an IAM user and using only a lambda execution role?
@jacksonyuan7744
@jacksonyuan7744 3 жыл бұрын
Hi! I don't believe so. Lambda execution roles are meant for granting your Lambda function the necessary permissions to interact with other AWS services. However, many of the managed policies we attach to the IAM user here are required for the Serverless Framework to make its deployment and not for the operations conducted within the Lambda function.
@sunsampicesg
@sunsampicesg Жыл бұрын
some of the steps Jackson not mention How git repo to AWS configure account configure
@engineerbarkat
@engineerbarkat Жыл бұрын
User: arn:aws:iam:::user/SocialHub_User_Barkat is not authorized to perform: cloudformation:DescribeStacks on resource: arn:aws:cloudformation:us-east-1::stack/socialhub-dev/* with an explicit deny in a service control policy. I am got this error can anyone help me with this?
孩子多的烦恼?#火影忍者 #家庭 #佐助
00:31
火影忍者一家
Рет қаралды 50 МЛН
ОСКАР vs БАДАБУМЧИК БОЙ!  УВЕЗЛИ на СКОРОЙ!
13:45
Бадабумчик
Рет қаралды 5 МЛН
DO YOU HAVE FRIENDS LIKE THIS?
00:17
dednahype
Рет қаралды 99 МЛН
GitHub Actions: The Easiest way to Deploy AWS Serverless Apps
29:46
Enlear Academy
Рет қаралды 7 М.
How GitHub Actions 10x my productivity
8:18
Beyond Fireship
Рет қаралды 396 М.
How to deploy a lambda function using github actions?
15:09
BiteSize Academy
Рет қаралды 28 М.
Deploy FastAPI on AWS Lambda ⚡ Serverless hosting!
22:24
pixegami
Рет қаралды 37 М.
How to Deploy AWS Lambda using Serverless Framework
18:25
Dr. Joanne Skiles
Рет қаралды 7 М.
Deploy a Nest.js App With Serverless (Cheap & Easy)
12:22
Michael Guay
Рет қаралды 36 М.
Здесь упор в процессор
18:02
Рома, Просто Рома
Рет қаралды 324 М.
Battery  low 🔋 🪫
0:10
dednahype
Рет қаралды 3,5 МЛН
PART 52 || DIY Wireless Switch forElectronic Lights - Easy Guide!
1:01
HUBAB__OFFICIAL
Рет қаралды 46 МЛН
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 1,6 МЛН