Elastic Beanstalk has built in support for RDS. But, I want to use Postgresql with Elastic Beanstalk. Which will be the best approach for doing this?
How to configure Elastic Beanstalk for using Rails with Postgres
amazon-beanstalkamazon-web-servicesruby-on-rails
Related Topic
- How to configure Apache on Amazon Elastic Beanstalk
- Mysql – Running MySQL on Amazon EC2 with EBS (Elastic Block Store) and Elastic Beanstalk
- Elastic Beanstalk Rails – Modify passenger config passenger_max_pool_size
- What are the pros and cons of AWS Elastic Beanstalk compared with other deployment strategies
- Permissions for EC2 created by Elastic Beanstalk connecting to external RDS
- Elastic Beanstalk – Can’t Add RDS Database to Elastic Beanstalk Environment
Best Answer
The easiest and cleanest way I found, assuming you're using Elastic Beanstalk CLI
eb
:Create an instance (follow the steps):
This will create an instance with MySQL.
Once it's created, stop it.
This will stop your instance and delete the MySQL database that was created by the initial setup.
Edit your instance configuration file in
.elasticbeanstalk
directory at the root of your project, replace DBEngine entry in the[aws:rds:dbinstance]
section by postgres.Restart the instance:
Check the status. Once it gets green, you'll now have a postgres database.