This project deploys with the serverless framework to AWS. It uses the following AWS services:
- API Gateway (REST API)
- Lambda functions to handle AWS requests and responses
- S3 for storage
Requests a signed url from the server to upload the file to s3.
{
"filename": "myfile.mp4",
"contentType": "videa/mp4"
}
{
"signedUrl": "https://s3.amazonaws.com/mybucket/myfile.mp4?AWSAccessKeyId=AKIAJ..."
}
Request a signed url from the server to download the file from s3.
{
"signedUrl": "https://s3.amazonaws.com/mybucket/myfile.mp4?AWSAccessKeyId=AKIAJ..."
}
Note: the generated signedUrl is valid for 5 minuts. After that, a new signedUrl must be requested.