Skip to content

Automate AWS Lambda deployment using Github Actions and Serverless Framework

Notifications You must be signed in to change notification settings

Avanve/Serverless-Lambda-GithubActions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless-Lambda-GithubActions

  1. Create IAM user--> Add permissions policies

  2. Create empty git repository

  3. Add AWS credentials to git repository

         go to github settings--> secrets and credentials--> Add new repository secrets
    
  4. Use any code editor and clone git repository.

  5. Install serverless via npm

         npm install -g serverless
    
  6. Create AWS Nodejs boilerplate project template using command

         serverless create --template aws-nodejs
    

    This will create three files gitignore, serverless.yml and handler.js files in project template

  7. Create src folder and move handler.js into src

  8. Create folder struture .github folder --> workflows folder --> add main.yml file

  9. commit and push code to remote repository. Github automatically deploy lambda and create CloudFormation Stack

About

Automate AWS Lambda deployment using Github Actions and Serverless Framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published