No video

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

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

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

Пікірлер: 38
@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!!
@dundasbrands
@dundasbrands 3 жыл бұрын
Thanks so much super helpful!
@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: kzfaq.info/get/bejne/gZOTY6SgstPFf4k.html. 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!
@marybeliveau2562
@marybeliveau2562 3 жыл бұрын
Extremely helpful, thank you!!
@jacksonyuan7744
@jacksonyuan7744 3 жыл бұрын
Glad I could help!
@thinhlpg
@thinhlpg 10 ай бұрын
Thank you! This is awesome!
@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
@user-xb7pf6ry6m
@user-xb7pf6ry6m 5 ай бұрын
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.
@abhinaypratap3889
@abhinaypratap3889 Жыл бұрын
good and best
@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?
@edwardgaming5681
@edwardgaming5681 6 күн бұрын
If i run serverless deploy then my ts code is getting bundled ans single index.js file is being deployed but when i use this method entire code base is getting deployed .
@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
@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 :)
@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 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?
@sebascardonac
@sebascardonac 2 жыл бұрын
How Can I do to configúrate The serverless yml to dont save the source code into S3?
@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.
@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
@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
@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 2 жыл бұрын
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?
How to deploy a lambda function using github actions?
15:09
BiteSize Academy
Рет қаралды 29 М.
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 61 МЛН
ПОМОГЛА НАЗЫВАЕТСЯ😂
00:20
Chapitosiki
Рет қаралды 4,2 МЛН
MISS CIRCLE STUDENTS BULLY ME!
00:12
Andreas Eskander
Рет қаралды 21 МЛН
How to design a modern CI/CD Pipeline
9:59
DevOps Journey
Рет қаралды 112 М.
Deploy FastAPI on AWS Lambda ⚡ Serverless hosting!
22:24
pixegami
Рет қаралды 37 М.
GitHub Actions: The Easiest way to Deploy AWS Serverless Apps
29:46
Enlear Academy
Рет қаралды 7 М.
AWS SAM Tutorial (with a Lambda Example!)
19:23
Be A Better Dev
Рет қаралды 137 М.
How GitHub Actions 10x my productivity
8:18
Beyond Fireship
Рет қаралды 403 М.
Setup AWS Serverless Project with Typescript Lambda Functions
28:43