GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - JaidevCodes/aws-s3-lambda-file-organizer: Serverless event-driven file organizer using AWS S3 and Lambda (Python).

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
output
output
 
 
README.md
README.md
 
 
architecture.png
architecture.png
 
 
lambda_function.py
lambda_function.py
 
 

Repository files navigation

Serverless File Organizer using AWS S3 and Lambda

📌 Overview

This project demonstrates an event-driven serverless architecture using AWS services. Whenever a file is uploaded to an Amazon S3 bucket, an AWS Lambda function is automatically triggered to categorize and move the file into appropriate folders based on its type.


🏗️ Architecture

Architecture

User uploads file → S3 Bucket → Lambda Trigger → File organized into folders


⚙️ How It Works

  1. User uploads a file to S3 bucket

  2. S3 triggers Lambda function (ObjectCreated event)

  3. Lambda reads file name and detects type

  4. File is moved to:

    • images/
    • documents/
    • videos/
    • others/
  5. Loop prevention ensures no re-triggering


🚀 Features

  • Event-driven automation
  • Automatic file categorization
  • Loop prevention logic
  • Scalable serverless architecture

🛠️ Technologies Used

  • AWS S3
  • AWS Lambda (Python)
  • IAM Roles & Policies
  • CloudWatch Logs

📂 File Categorization

File Type Destination Folder
.jpg, .png images/
.pdf documents/
.mp4 videos/
others others/

⚠️ Challenges Faced

  • Handling S3 folder vs object behavior
  • Preventing infinite Lambda execution loops
  • Correct IAM role configuration

📸 Output

Files are automatically moved into respective folders after upload.


🔮 Future Improvements

  • Add timestamp-based file renaming
  • Store metadata in DynamoDB
  • Build frontend upload interface

👨‍💻 Author

Jai Dev

About

Serverless event-driven file organizer using AWS S3 and Lambda (Python).

Topics

aws-iam-rolesaws-lambdaaws-s3cloud-computingevent-driven-architecturepythonserverless

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.