Initialize Zappa
1. In your Django projectβs root directory, run the following command:
zappa init
and follow the prompts to configure your Zappa deployment.
(myvenv) coder@DilLip:/home/dillipchowdary/GFGArticles/Django-Sample-Project$ zappa init ββββββββ ββββββ βββββββ βββββββ ββββββ ββββββββββββββββββββββββββββββββββββββββ βββββ ββββββββββββββββββββββββββββββββ βββββ βββββββββββββββ βββββββ ββββββββ βββββββββββ ββββββ βββ βββ βββ βββββββββββ ββββββ βββ βββ βββ Welcome to Zappa! ... Your Zappa configuration can support multiple production stages, like 'dev', 'staging', and 'production'. What do you want to call this environment (default 'dev'): ... ... Where are your project's settings?: todo.settings.prod ... Would you like to deploy this application globally? (default 'n') [y/n/(p)rimary]: n Okay, here's your zappa_settings.json: { "dev": { "django_settings": "todo.settings.prod", "project_name": "django-sample-project", "runtime": "python3.9", "s3_bucket": "alpha-common-bucket" } }
How to Deploy Django Application in AWS Lambda?
Django is a Python web framework that makes it easy to build web applications quickly and securely. It has a large and helpful community that provides support and contributes to its development.
AWS Lambda is a serverless computing platform that runs your code in Docker containers, provides us with the best possible speed, and there is a number of third-party apps, and tools that make Lambda usage much easier, in this tutorial we gonna use one such tool.