two-trick-pony-NL / Django_AWS_Lightsail_Template

Simple Template to deploy Django Apps to AWS Lightsail through Github Actions
44 stars 4 forks source link
actions aws aws-lightsail django github githubactions lightsail nginx python template

Django Project Deployment on AWS LightSail Containers via GitHub Actions

Why:

Setting up django for production is hard! Using this template will give you a easy deployment that comes out of the box with:

How:

What can I do with this?

Installation

Prerequisites and testing locally

Steps

0.

1. Configure AWS LightSail Container Service

2. Set Up AWS Access Credentials

Generate AWS access credentials with the necessary permissions and store them securely. You can use AWS IAM for this purpose. Plenty of tuturials on how to obtain this. At the end of this step you should have:

AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY

In AWS lightsail create a storage bucket and obtain the:

3. Update GitHub Repository Secrets

In your GitHub repository, go to Settings -> Secrets and add the following secrets:

When you're done it should look like this:

Schermafbeelding 2023-10-12 om 23 29 52

4. Update your app