Skip to content

Repository files navigation

CI Codespaces Prebuilds

Serverless Data Engineering Pipeline via AWS and Hugging Face Transformers library for sentiment analysis

This project demonstrates a serverless data engineering pipeline that processes and analyzes text data using AWS services and the Hugging Face Transformers library. The pipeline is designed to be scalable, cost-effective, and easy to maintain.

Architecture

┌─────────────┐     ┌─────────────┐     ┌─────────────┐
│  Input S3   │────▶│   Lambda    │────▶│  Output S3  │
│   Bucket    │     │  Function   │     │   Bucket    │
└─────────────┘     └──────┬──────┘     └─────────────┘
                           │
                           ▼
                    ┌─────────────┐
                    │    Glue     │
                    │  (ETL/ETL)  │
                    └──────┬──────┘
                           │
                           ▼
                    ┌─────────────┐
                    │ CloudWatch  │
                    │  (Monitor)  │
                    └─────────────┘

Key Components

1. AWS Lambda

  • Serverless function for text processing
  • Integrates with Hugging Face for sentiment analysis
  • Triggered by new data uploads

2. AWS S3

  • Input bucket for raw text data
  • Output bucket for processed results
  • Secure and scalable storage

3. AWS Glue

  • ETL operations
  • Schema inference
  • Data catalog management

4. AWS CloudWatch

  • Pipeline monitoring
  • Scheduled executions
  • Performance metrics

Getting Started

  1. Prerequisites

    • AWS Account
    • Python 3.8+
    • AWS CLI configured
  2. Installation

    pip install -r requirements.txt
  3. Configuration

    • Set up AWS credentials
    • Configure S3 buckets
    • Deploy Lambda function
  4. Running the Pipeline

    python main.py

Project Structure

.
├── lambda_function.py    # AWS Lambda handler
├── main.py              # Main pipeline script
├── requirements.txt     # Python dependencies
├── tf-requirements.txt  # Terraform dependencies
└── utils/              # Utility functions

Related Projects

Resources

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

Generated from nogibjj/aws-template