Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aflalasker/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.
https://github.com/aflalasker/post-automating-serverless-deployments-to-aws-lambda-with-github-actions
actions aws-lambda python terraform
Last synced: about 1 month ago
JSON representation
This repository contains the GitHub Actions pipeline and Terraform configuration to automate the deployment of an AWS Lambda function.
- Host: GitHub
- URL: https://github.com/aflalasker/post-automating-serverless-deployments-to-aws-lambda-with-github-actions
- Owner: aflalasker
- License: apache-2.0
- Created: 2024-09-14T17:04:42.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-14T19:46:00.000Z (2 months ago)
- Last Synced: 2024-10-15T17:38:35.611Z (about 1 month ago)
- Topics: actions, aws-lambda, python, terraform
- Language: HCL
- Homepage: https://aflal.codes/posts/deploying-lambda-using-github-actions
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://aflal.codes).
## Prerequisites
- [Terraform](https://www.terraform.io/)
- [AWS CLI](https://aws.amazon.com/cli/)
- [GitHub Account](https://github.com/)## Installation
1. Clone the repository:
```sh
git clone https://github.com/your-username/your-repo.git
cd your-repo
```2. Install dependencies:
```sh
terraform init
```## Usage
1. **Configure AWS CLI**:
```sh
aws configure
```2. **Run Terraform Plan**:
```sh
terraform plan plan.tfplan
```3. **Apply Terraform Configuration**:
```sh
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](https://aflal.codes/posts/deploying-lambda-using-github-actions).
## License
This project is licensed under the Apache License Version 2.0 - see the [LICENSE](LICENSE) file for details.