🚀 Deploy to AWS Lambda in Minutes with GitHub Actions

Ever deployed your app to AWS Lambda or thought about doing it? Now it’s easier than ever with the new AWS Lambda Deploy GitHub Action.

In the past, deploying to Lambda meant writing long AWS CLI commands in your workflow or wrestling with complex Clo…


This content originally appeared on DEV Community and was authored by Keme Kenneth

Ever deployed your app to AWS Lambda or thought about doing it? Now it’s easier than ever with the new AWS Lambda Deploy GitHub Action.

In the past, deploying to Lambda meant writing long AWS CLI commands in your workflow or wrestling with complex CloudFormation templates. But now, with just a few lines of YAML, you can ship your code directly to AWS Lambda.

The AWS Lambda Deploy GitHub Action is an official tool from the AWS team, available right in the GitHub Marketplace. Since GitHub Actions is already one of the most user-friendly CI/CD tools, this new integration makes deploying to Lambda seamless.

How It Works

To get started, all you need is:

AWS credentials configured using the configure-aws-credentials action.

The aws-lambda-deploy action with just a handful of required inputs.

You can deploy any runtime supported by Lambda - Node.js, Python, Java, .NET, or Ruby.

Example Workflow

Here’s a simple workflow that deploys a Python app to Lambda whenever you push code:

name: Deploy to AWS Lambda
on: push

permissions:
  contents: read

jobs:
  lambda:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Configure AWS credentials
        uses: aws-actions/configure-aws-credentials@v4
        with:
          aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
          aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          aws-region: us-east-1                

      - name: Deploy Lambda Function
        uses: aws-actions/aws-lambda-deploy@v1.1.0
        with:
          function-name: my-moon-app
          code-artifacts-dir: .
          handler: app.handler
          runtime: python3.10
          role: arn:aws:iam::123456789012:role/my-lambda-role

This workflow runs automatically whenever you push code or commit to your repository.

Key Parameters

function-name – The name of your Lambda function

code-artifacts-dir – Directory of your app’s code (use . if it’s in the root)

handler – The entry point (fileName.functionName, e.g., app.handler)

runtime – The runtime your app uses (e.g., python3.10, nodejs18.x)

role – IAM role ARN for Lambda execution

The action also supports advanced options like package-type, image-uri, memory-size, timeout, environment, and architectures.
See the full parameter list 👉 here
.

Security Best Practice

⚠️ Never hardcode your AWS credentials in your workflow.
Instead, store them as GitHub secrets and reference them like this:

aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

Closing

With the AWS Lambda Deploy GitHub Action, deploying serverless apps is now as easy as pushing code. It’s fast, simple, and officially supported by AWS—making it a perfect fit for modern CI/CD pipelines.


This content originally appeared on DEV Community and was authored by Keme Kenneth


Print Share Comment Cite Upload Translate Updates
APA

Keme Kenneth | Sciencx (2025-08-28T15:41:09+00:00) 🚀 Deploy to AWS Lambda in Minutes with GitHub Actions. Retrieved from https://www.scien.cx/2025/08/28/%f0%9f%9a%80-deploy-to-aws-lambda-in-minutes-with-github-actions/

MLA
" » 🚀 Deploy to AWS Lambda in Minutes with GitHub Actions." Keme Kenneth | Sciencx - Thursday August 28, 2025, https://www.scien.cx/2025/08/28/%f0%9f%9a%80-deploy-to-aws-lambda-in-minutes-with-github-actions/
HARVARD
Keme Kenneth | Sciencx Thursday August 28, 2025 » 🚀 Deploy to AWS Lambda in Minutes with GitHub Actions., viewed ,<https://www.scien.cx/2025/08/28/%f0%9f%9a%80-deploy-to-aws-lambda-in-minutes-with-github-actions/>
VANCOUVER
Keme Kenneth | Sciencx - » 🚀 Deploy to AWS Lambda in Minutes with GitHub Actions. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/08/28/%f0%9f%9a%80-deploy-to-aws-lambda-in-minutes-with-github-actions/
CHICAGO
" » 🚀 Deploy to AWS Lambda in Minutes with GitHub Actions." Keme Kenneth | Sciencx - Accessed . https://www.scien.cx/2025/08/28/%f0%9f%9a%80-deploy-to-aws-lambda-in-minutes-with-github-actions/
IEEE
" » 🚀 Deploy to AWS Lambda in Minutes with GitHub Actions." Keme Kenneth | Sciencx [Online]. Available: https://www.scien.cx/2025/08/28/%f0%9f%9a%80-deploy-to-aws-lambda-in-minutes-with-github-actions/. [Accessed: ]
rf:citation
» 🚀 Deploy to AWS Lambda in Minutes with GitHub Actions | Keme Kenneth | Sciencx | https://www.scien.cx/2025/08/28/%f0%9f%9a%80-deploy-to-aws-lambda-in-minutes-with-github-actions/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.