Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

meroxa/deploy-lambda-function

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Action to deploy/update a Lambda function from a ZIP file.

Required parameters

  • package: A ZIP file with the code of your Lambda. This file can be created in a step or job prior to this action.
  • function-name
  • AWS_REGION
  • AWS_SECRET_ID
  • AWS_SECRET_KEY

Example

name: Deploy Lambda

on:
  pull_request:
    types: [closed]
      branches:
        - master

jobs:
  deploy-lambda:
    if: github.event.pull_request.merged
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      - run: echo "THIS IS A TEST PACKAGE" > file.txt
      - run: zip lambda.zip file.txt
      - uses: yvesgurcan/deploy-lambda-function
        with:
          package: lambda.zip
          function-name: TEST-FUNCTION
          AWS_REGION: ${{ secrets.AWS_REGION }}
          AWS_SECRET_ID: ${{ secrets.AWS_SECRET_ID }}
          AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}

About

💡 Github Action to update the code of an AWS Lambda function

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%