Adding a Database to Elastic Beanstalk Environment

Lab Details

  1. This lab walks you through the AWS Elastic Beanstalk service. In this lab, you will deploy and manage a simple Java application in the AWS Cloud and you will add a new database using Beanstalk Environment Configuration.

  2. Duration: 60 minutes

  3. AWS Region: US East (N. Virginia) us-east-1


MySQL Server Setup

  • Windows users need to:

  • Download and install MySQL Workbench

    • MySQL Workbench  will be used for connecting to the database and executing SQL commands.

  • Linux Users need to install MySQL. Run the following command to install MySQL on your local machine:

    • brew install mysql

    • Note: If you do not have brew please install brew first (necessary curl command can be found at

Architecture Diagram

Task Details

  1. Log into the AWS Management Console.

  2. Create a simple java application in Elastic Beanstalk.

  3. Configure and add a new RDS instance using Beanstalk environment configuration.

  4. Get access to the RDS database and perform database operations.

  5. Validation of the lab