This video is available to students only

Your first RDS database

We walk through the AWS Console

Let's create an RDS database#

In this lesson, we'll create an RDS database in your AWS account. We'll be very careful to configure the database so that it will be covered by the free tier so it won't cost anything.

While AWS has other datastore options like DynamoDB, the only Django officially supported databases are relational databases, so we'll start with those.

AWS RDS supports many types of database engines, but for this course, we will choose a well-supported and common engine: PostgreSQL.

For this process, make sure your AWS account has the permissions to create new RDS instances.

This module is going to be used for illustration purposes. This method of database creation is not meant to be used in production.

This is because the RDS instance you will create will be publicly accessible to the entire Internet. This is considered very insecure.

We're going through this process now to become familiar with the steps and will delete this database at the end of the module. We'll review more steps to make this setup production-ready in the next module.

Quick overview#

When you create an RDS instance, it's like telling AWS to host a virtual database server for you. You can host one or more databases on an RDS instance, so if you have many small projects that don't require many resources, they can all share a single RDS instance. This is nice if you'd like to continue to use the AWS free tier and keep your monthly costs low.

So we're going to create an RDS instance called newline-course-zappa and on that instance, we'll host a database called ZappaCourseDB. Remember that the AWS Console will be very useful for configuring and managing the RDS instance, but not helpful when managing the hosted databases. We'll use some other tools when we get to that point, including Django itself.

Step by step#

Here are the steps we're following to create the RDS instance for this course. Not all the settings would be appropriate for creating a production RDS instance, and I've attempted to note them below.


This page is a preview of Serverless Django with Zappa

Start a new discussion. All notification go to the author.