- Access Type - Password
- Permissions - Admin
- Select an OS image - Ubuntu
- Create a new key pair & download .pem file
- Connecting to the instance using ssh
ssh -i instance.pem ubunutu@<IP_ADDRESS>
- Updating the outdated packages
sudo apt update
- Clone the project
git clone https://github.com/Yash-KK/Django-EC2.git
cd Django-EC2
- Create a virtual enviornment
virtualenv venv
source venv/bin/activate
- Setup the following enviornment variables
SECRET_KEY=""
- Start the project
python manage.py runserver 0.0.0.0:8000
NOTE - We will have to edit the inbound rules in the security group of our EC2, in order to allow traffic from our particular port