Post-Automating-Serverless-Deployments-to-AWS-Lambda-with-GitHub-Actions

This repository contains the GitHub Actions pipeline and Terraform configuration to automate the deployment of an AWS Lambda function.

APACHE-2.0 License

Stars
0
Committers
2

AWS Lambda Deployment with GitHub Actions and Terraform

This repository contains GitHub Actions pipeline and Terraform configuration to deploy an AWS Lambda function. The code in this repository is used in a blog post on aflal.codes.

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/your-repo.git
    cd your-repo
    
  2. Install dependencies:

    terraform init
    

Usage

  1. Configure AWS CLI:

    aws configure
    
  2. Run Terraform Plan:

    terraform plan plan.tfplan
    
  3. Apply Terraform Configuration:

    terraform apply plan.tfplan
    
  4. GitHub Actions Pipeline:

    • The GitHub Actions pipeline is configured to automatically deploy the AWS Lambda function when changes are merged to main.
    • Ensure your GitHub repository is connected to your AWS account and the necessary secrets are set up in the repository settings.

Blog Post

For more detailed information, please refer to the blog post.

License

This project is licensed under the Apache License Version 2.0 - see the LICENSE file for details.