Configuring database settings

We have resolved the issue with accessing the public volume, however the application is still not working because we are not passing in any environment variables to configure database settings.  The reason for this is that when you configure a database in Elastic Beanstalk, all database settings are made available via the following environment variables:

  • RDS_HOSTNAME
  • RDS_USERNAME
  • RDS_PASSWORD
  • RDS_DB_NAME
  • RDS_PORT

The problem for the todobackend application is that it expects database-related settings that are prefixed with MYSQLfor example, MYSQL_HOST is used to configure the database hostname. Although we could update our application to use the RDS prefixed environment variables, we might want to ...

Get Docker on Amazon Web Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.