This is a robust and scalable File Upload Service built with โ๏ธ AWS Lambda and S3. It allows users to effortlessly upload, download, and delete files from the cloud storage - all with a secure and user-friendly interface.
- ๐ User registration and authentication
- ๐ค File upload
- ๐ฅ File download
- ๐๏ธ File deletion
Our service leverages a variety of powerful technologies:
- ๐ Python
- โ๏ธ AWS Lambda
- โ๏ธ AWS S3
- โ๏ธ AWS SAM for local development and deployment
- โ๏ธ Github Actions
/project_root
/lambda_functions
/auth
lambda_function.py
/upload
lambda_function.py
/download
lambda_function.py
/delete
lambda_function.py
/tests
test_functions.py
template.yaml
requirements.txt
.github/workflows/main.yml
- Clone the repository
git clone <repository-url>
- Navigate to the project directory
cd <project-dir>
- Install the Requirements
pip install -r requirements.txt
-
Install AWS SAM CLI Follow the instructions here to install the AWS SAM CLI.
-
Install Docker Follow the instructions here to install Docker as it is required to run AWS Lambda functions locally.
After setting up, navigate to your project root directory in the terminal and use the SAM CLI to invoke the functions locally.
Start the API Gateway locally
sam local start-api
- After starting the local API Gateway, you can send HTTP requests to the locally running API, for example, using curl or Postman.
Navigate to your project root directory and run:
pytest tests/
Deployment is handled via GitHub Actions which use AWS SAM to build, package, and deploy the application.
Make sure to setup GitHub Secrets in your repository to store AWS Access Key ID, AWS Secret Access Key, and any other sensitive information securely.
Please store sensitive data like JWT Secret Keys in AWS Secrets Manager for production. When testing locally with SAM and Docker, ensure Docker is running. It is recommended to understand the AWS Free Tier limitations to avoid incurring additional costs.