AWS

AWS serverless deployment of Django server

Serverless Django

Project URL: https://github.com/corymullins/wagtail_lambda

  I built a Django website on my local machine, utilizing PostgreSQL and Wagtail framework. After exploring options to host the site on AWS in a manner which would allow increased scalability over a Docker container, I decided to implement it via Lambda. Once deployed, the website run on Lambda, behind API Gateway, and maintains its state with RDS Aurora and S3.

Completed:
  • Django blog website created locally.
  • Wrote Terraform code to migrate site to AWS.
  • Created Role to assume temporary permissions for migration.
In-Progress:
  • Due to API Gateway spinning up the database on first call, the website can appear to be unresponsive.
  • Several steps of migration are manually implemented. Explore methods to better automate deployment of Lambda functions and run tests.
  • Explore ways to reduce operational costs. The website incurs charges for RDS, VPC endpoints, S3, and Lambda.