Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yvesgurcan/deploy-lambda-function
💡 Github Action to update the code of an AWS Lambda function
https://github.com/yvesgurcan/deploy-lambda-function
aws-lambda continuous-deployment continuous-integration github-action
Last synced: 2 months ago
JSON representation
💡 Github Action to update the code of an AWS Lambda function
- Host: GitHub
- URL: https://github.com/yvesgurcan/deploy-lambda-function
- Owner: yvesgurcan
- Fork: true (stcalica/update-lambda)
- Created: 2019-12-23T19:10:00.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T20:59:14.000Z (over 3 years ago)
- Last Synced: 2024-10-12T11:45:47.705Z (2 months ago)
- Topics: aws-lambda, continuous-deployment, continuous-integration, github-action
- Language: JavaScript
- Homepage: https://github.com/marketplace/actions/deploy-aws-lambda-function
- Size: 6.69 MB
- Stars: 11
- Watchers: 2
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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 Lambdaon:
pull_request:
types: [closed]
branches:
- masterjobs:
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 }}
```