Git Product home page Git Product logo

aws-lambda-sns's Introduction

AWS Lambda Word Count Mini Project

Overview:

This mini project demonstrates the implementation of a serverless word counting solution using AWS Lambda, S3, and SNS. The primary objective is to automatically count the number of words in a text file upon upload to an S3 bucket and report the results through an email notification.

Steps to Replicate:

1. Lambda Function Creation:

  • Use the AWS Management Console to create a Lambda function in Python.
  • Apply the provided IAM role (LambdaAccessRole) with necessary permissions for CloudWatch Logs, SNS, and S3.

2. Email Notification Setup:

  • Establish an Amazon SNS topic to handle email notifications.
  • Format the response message to display the word count in the uploaded text file.

3. S3 Bucket Configuration:

  • Configure an S3 bucket to invoke the Lambda function automatically upon text file uploads.

4. Testing:

  • Upload sample text files with varying word counts to the S3 bucket.
  • Verify that the Lambda function is triggered and word count results are sent through the configured SNS topic.

Architecture Overview:

Lambda Function:

  • Written in Python, the Lambda function processes text files.
  • Utilizes the provided IAM role (LambdaAccessRole) for necessary permissions.

S3 Bucket:

  • Configured to trigger the Lambda function upon text file uploads.

SNS Topic:

  • Sends email notifications containing word count results.
  • Optionally, can be extended to send SMS notifications.

aws-lambda-sns's People

Contributors

riri-brb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.