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

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ก.ย. 2024

ความคิดเห็น • 39

  • @ashwinjoshy5906
    @ashwinjoshy5906 หลายเดือนก่อน

    Great video, Even though it was published 3 year ago, It was very helpful to me.

  • @ephilihp
    @ephilihp 2 ปีที่แล้ว +6

    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 ปีที่แล้ว +2

    Wow Jackson, Thanks for sharing the knowledge!!

  • @jameswilliam4570
    @jameswilliam4570 3 ปีที่แล้ว +1

    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 ปีที่แล้ว +3

      @@jameswilliam4570 I briefly go over how to set env variables using the Serverless framework here: th-cam.com/video/K-c0AoMmaOU/w-d-xo.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!

  • @blondeaufofe
    @blondeaufofe 7 หลายเดือนก่อน

    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.

  • @jyotindratavanoji9929
    @jyotindratavanoji9929 2 ปีที่แล้ว +12

    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 2 ปีที่แล้ว

      Thank You

    • @arjunbk5825
      @arjunbk5825 2 ปีที่แล้ว

      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

  • @lesliechiu1437
    @lesliechiu1437 2 ปีที่แล้ว +1

    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?

  • @samtonijourney
    @samtonijourney ปีที่แล้ว

    makes my day. thanks!

  • @thinhlpg
    @thinhlpg ปีที่แล้ว

    Thank you! This is awesome!

  • @edwardgaming5681
    @edwardgaming5681 หลายเดือนก่อน

    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 .

  • @lesliechiu1437
    @lesliechiu1437 2 ปีที่แล้ว +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 ปีที่แล้ว +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

  • @marybeliveau2562
    @marybeliveau2562 3 ปีที่แล้ว

    Extremely helpful, thank you!!

  • @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.

  • @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?

  • @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.

  • @nicodemus399
    @nicodemus399 2 ปีที่แล้ว

    can I do this for a rest api ?, how would I do it for the npm install?

  • @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!

  • @dundasbrands
    @dundasbrands 3 ปีที่แล้ว

    Thanks so much super helpful!

  • @abhinaypratap3889
    @abhinaypratap3889 2 ปีที่แล้ว

    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 :)

  • @armandocarracedovelazquez672
    @armandocarracedovelazquez672 3 ปีที่แล้ว

    Thanks you!

  • @lutdootutdoo5342
    @lutdootutdoo5342 3 ปีที่แล้ว +1

    Very helpful! Thanks

  • @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?