Creates Signed URL to serve videos from S3 bucket.
Hosted on AWS Lambda function.
Steps to run the project on AWS Lambda:
- Clone the repo.
- Run it locally.
- Zip the entire file, along with the dependencies.
- a. With web console: Go to lambda section. Import the zipped file. You can see the code in web IDE. b. Using Terraform: Use archive_file data source. Put the absolute path of the repo (the original one, not the zipped one). And use that data source into your lambda function. (https://registry.terraform.io/providers/hashicorp/archive/latest/docs/data-sources/archive_file).
- Configure a role and policy for Lambda to access S3 bucket which contains the videos.
- Provision API Gateway as the trigger and create endpoints mentioned in the code.