title: how to export postgres database from aws rds
body: <p>I have a Rails 4 app deployed to Elastic Beanstalk using Postgresql. My question is: what is the best way (or a good way) to export the database?</p>
  <p>I tried to use <code>pg_dump</code> from the ec2 instance which is part of the RDS security group but the ec2 instance has a different postgres version (9.2.9).  I was also unable to make this happen using the AWS console.</p>
  <p>Any general advice on how best to proceed would be much appreciated.</p>