Hosting Your Spring Boot Application with MySql Database using AWS Elastic Beanstalk.

On 2024-08-27 By atomicadmin

This post notes down all the steps in brief that are required to host your application on Elastic Beanstalk using MySQL RDS. Each step is a pointer to guide you thru the process and while following these steps, you may need to search for some "how to" documentaion on the web to accomplish the task. This overall guide documentation process helps keep the blog brief and helps consolidate the overall process at a single place.


Step 1 : Create a brand new gmail account for managing your web application.
Step 2 : Generate gmail web app password. You must have 2-Step-Verification enabled before setting up an application password.
Step 3 :  Create Your AWS Account.
Step 4 :  Set up budget and alerts in Billing and Cost Management.
Step 5 :  Create MySQL DB Instance in RDS. 

Step 6 : Now time to create the Elastic Beanstalk App.

Step 7 : To optimize costs, you can scale down the EC2 instances at night. Go to your environment configuration and navigate to instance traffic and scaling. Enter the shutdown and start cron expressions along with start and end dates in time-based scaling section.

You can plan on stopping the rds instance during off hours using lambda functions. (https://aws.amazon.com/blogs/database/schedule-amazon-rds-stop-and-start-using-aws-lambda/)

Comments (0)

Add a Comment