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:
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')"
}
}
Step 5 : Configure POST Method
{
"body" : "$input.body",
"queryStringParameters" : {
"fileName" : "$input.params('fileName')"
}
}
Step 6 : Now Deploy the API and Test the application using a third party
client such as Postman etc.
Proof Of Concept:
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)
Nice idea!
Have you tried anything else except text? Maybe images?
Thanks !!
Nahh! I will try it soon.