Skip to content

opsntech/sns-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SNS Event Processor

A lightweight Python service that consumes AWS SNS events (like SES bounces/deliveries), stores them locally in S3, and optionally forwards a summary via email.

Features

  • Receive SNS events (via HTTP/Flask)
  • Persist to local log files
  • Upload events to S3 (partitioned by year/month/day)
  • Send email notifications (SES or SMTP)
  • Docker + Docker Compose ready

Quick Start

  1. Clone the repo:

    git clone https://github.com/opsntech/sns-processor.git
    cd sns-processor
    
  2. Copy .env.example to .env and update values.

  3. Build:

     cd docker
     docker build -t sns-digest:latest .
    
  4. Run:

    docker-compose up -d
    
  5. Expose the service endpoint to SNS:

     Create an SNS subscription with protocol = HTTP/HTTPS
     Point to http://<host>:8000/sns
    

Roadmap

  • Metrics dashboard (Grafana/Prometheus)
  • Athena/QuickSight integration
  • Configurable retention policy

About

Python app to consume AWS SNS events, parse and upload to S3 in batches

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published