Skip to content

A serverless thumbnail generating application built on AWS using SAM. It integrates s3, lambda, dynamodb and api gateway. You can upload a png image to the bucket which triggers a lambda function that uploads a thumbnail image into the same bucket. The thumbnail data is then saved to a dynamodb table which can be accessed with api requests.

Notifications You must be signed in to change notification settings

ShaivaMuthaiyah/Thumbnail-Generator-SAM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Table of Contents
  1. About The Project
  2. Getting Started
  3. Project Folders

About The Project

A serverless thumbnail generation application built on AWS using the Serverless Application Model (SAM). This solution seamlessly integrates Amazon S3, AWS Lambda, DynamoDB, and API Gateway. When a .jpg/.png image is uploaded to the S3 bucket, it triggers a Lambda function that creates a thumbnail of the image and stores it back in the same bucket. Metadata for each thumbnail is then saved to a DynamoDB table, which can be accessed through API requests.

Alt text

Built With

  • Python 3.9
  • AWS Lambda, DynamoDB, S3 and SAM
  • YAML

Prerequisites

Two key things required for this project are :

Getting Started

After setting up the AWS CLI you can use this command inside whichever directory you want to start the project

  • Initialise a SAM Project
    sam init

Set it up with the language you want to work with and choose the 'Hello World' example project as a base. You can follow this guide here at https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-getting-started-hello-world.html

Project Folders

The main project directory has the SAM configuration files to build the project. Inside the thumbnail_maker directory you can find the code for the lambda functions which are automatically referenced while building the project.

Main Project Directory

You can create your template in this folder as well as where the configuration file with automaticallly appear. The quotes.json folder is also provided here, this has to be put into the s3 bucket once the intial architecture is launched. Lauch the AWS CLI and from the project directory you can use these commands after the intial setup using the same deploy --guided command from the guide.

  • Build the project
    sam build
  • Deploy the architecture
sam deploy

Lambda

Over here i have added the python file containing all the lambda functions required to run the application.

About

A serverless thumbnail generating application built on AWS using SAM. It integrates s3, lambda, dynamodb and api gateway. You can upload a png image to the bucket which triggers a lambda function that uploads a thumbnail image into the same bucket. The thumbnail data is then saved to a dynamodb table which can be accessed with api requests.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages