Skip to content

ankushnema/aws-lambda-s3-terraform-sre-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AWS Lambda + S3 Trigger β€” Terraform SRE Starter

This project sets up a reliable, serverless event-driven architecture using AWS Lambda and S3, provisioned via Terraform. It demonstrates core Site Reliability Engineering (SRE) principles like observability, graceful failure handling, and infrastructure as code (IaC).

🌍 Use Case

When a new object is uploaded to an S3 bucket, a Lambda function is triggered to process the event. The function includes retry logic and structured logging, helping ensure that transient failures are automatically retried and logged for analysis.


πŸš€ What This Project Includes

  • βœ… AWS Lambda function written in Python 3.9
  • βœ… S3 bucket trigger on object upload
  • βœ… Terraform-based infrastructure provisioning
  • βœ… Retry logic with exponential backoff using tenacity
  • βœ… Observability via structured logs (viewable in CloudWatch)
  • βœ… Beginner-friendly project structure and documentation

πŸ› οΈ Getting Started

Prerequisites

  • AWS CLI configured (aws configure)
  • Terraform installed
  • Python 3.9+
  • Git

Setup Steps

  1. Clone the repo
    git clone https://github.com/ankushnema/aws-lambda-s3-terraform-sre-starter.git
    cd aws-lambda-s3-terraform-sre-starter

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published