Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PostgreSQL for Django on Elastic Beanstalk

I'm reading conflicting reports about using PostgreSQL on Amazon's Elastic Beanstalk for python (Django).

Some sources say it isn't possible: (http://www.forbes.com/sites/netapp/2012/08/20/amazon-cloud-elastic-beanstalk-paas-python/). I've been through a dummy app setup, and it does seem that MySQL is the only option (amongst other ones that aren't Postgres).

However, I've found fragments around the place mentioning that it is possible - even if they're very light on detail.

I need to know the following:

  1. Is it possible to run a PostgreSQL database with a Django app on Elastic Beanstalk?
  2. If it's possible, is it worth the trouble?
  3. If it's possible, how would you set it up?
like image 496
Pat Avatar asked Oct 12 '12 00:10

Pat


People also ask

Can I use PostgreSQL with Django?

Django officially supports the following databases: PostgreSQL. MariaDB. MySQL.

Can I host Django on AWS?

Django comes with a development server that helps run Django projects in localhost. However, to make your web application available worldwide you will need a host machine. Amazon Web Services (AWS) provides EC2 (Elastic Compute Cloud) which is the most popular choice to host Django web applications.

When should you not use Elastic Beanstalk?

Elastic Beanstalk isn't great if you need a lot of environment variables. The simple reason is that Elastic Beanstalk has a hard limit of 4KB to store all key-value pairs. The environment had accumulated 74 environment variables — a few of them had exceedingly verbose names.


1 Answers

Postgre is now selectable from the AWS RDS configurations. Validated through Elastic Beanstalk application setup 2014-01-27.

like image 69
MikeL Avatar answered Sep 28 '22 08:09

MikeL