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

Architecture Diagram

Task Details

  1. Log into the AWS Management Console.

  2. Create Elastic Beanstalk Environment

  3. Adding Database to the Beanstalk Environment

  4. Test the RDS Database Connection

  5. Connecting from a local Linux/IOS Machine

  6. Connecting from a local Windows Machine

  7. Validation of the lab

Prerequisites

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 https://brew.sh)