DEV Community

Cover image for Building a Serverless File Sharing Platform
Lokeshwar Rajan
Lokeshwar Rajan

Posted on

Building a Serverless File Sharing Platform

DESCRIPTION:

I built a Serverless File Sharing Platform that enables users to securely upload and download files through a straightforward HTTP API. This platform uses AWS Lambda for serverless compute, API Gateway for managing RESTful APIs, and Amazon S3 for scalable and durable object storage.

ARCHITECTURE:

Image description

Here's Step by Step Guide:

Step 1 : Create an S3 bucket to store uploaded files
Step 2 : Create Upload and Download Lambda Functions with required
execution role with necessary IAM Role for S3.
Step 3 : Create an API Gateway with POST and GET Methods and integrate
it with the lambda functions
Step 4 : Configure GET Method

{
  "queryStringParameters": {
      "fileName": "$input.params('fileName')"
  }
}

Enter fullscreen mode Exit fullscreen mode

Step 5 : Configure POST Method

{
  "body" : "$input.body",
  "queryStringParameters" : {
      "fileName" : "$input.params('fileName')"
  }
}

Enter fullscreen mode Exit fullscreen mode

Step 6 : Now Deploy the API and Test the application using a third party
client such as Postman etc.

Proof Of Concept:

Image description

Image description

Image description

Image description
Image description

Image description

Image description

As this is my first post here I'm very excited and curious to explore many more stuffs and grow together as a community.
Cheers Devs

Top comments (2)

Collapse
 
aregaz profile image
Illia Ratkevych

Nice idea!
Have you tried anything else except text? Maybe images?

Collapse
 
lokewrites profile image
Lokeshwar Rajan

Thanks !!
Nahh! I will try it soon.