Using the Elastic Beanstalk database details access method (i.e. system.getProperty).