Giter Club home page Giter Club logo

configuring-aws-s3-lambda-sns's Introduction

Configuring AWS-S3 Lambda SNS

AWS S3 Upload Notification System

This project sets up an AWS S3 upload notification system using AWS Lambda, SNS, and S3. When an object is uploaded to an S3 bucket, a Lambda function is triggered, which publishes a notification to an SNS topic. Subscribers to the SNS topic receive notifications, enabling real-time awareness of S3 bucket activity.

Setup Instructions

  1. Create AWS Resources:

    • Create an S3 bucket to monitor for object uploads.
    • Set up an SNS topic to receive notifications.
    • Create a Lambda function to trigger on S3 upload events and publish to the SNS topic.
  2. Lambda Function Configuration:

    • Write the Lambda function code to handle S3 upload events and publish notifications to the SNS topic.
    • Configure the Lambda function with appropriate permissions to access S3 and SNS.
  3. Subscribe to SNS Topic:

    • Subscribe to the SNS topic using your desired endpoint (e.g., email) to receive notifications.
  4. Testing:

    • Upload an object to the S3 bucket to trigger the Lambda function.
    • Verify that notifications are successfully delivered via the subscribed endpoint.

Triggering Lambda Function Using Python Script

To programmatically trigger the Lambda function, you can use the provided Python script notify.py. This script utilizes the AWS SDK for Python (Boto3) to invoke the Lambda function.

Installation

  1. Install the Boto3 library:
    pip install boto3

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.