- Navigate to the AWS Elastic Beanstalk console at https://console.aws.amazon.com/elasticbeanstalk/.
- Click on
Create application
. - Select
Web server environment
and clickSelect
. - In the
Application information
section, type02-rest-api-mysql
as the application name. - In the
Platform
section, selectManaged platform
and from the dropdown menus, selectJava
. - In the
Application code
section, chooseUpload your code
. ClickChoose file
to select the Spring Boot JAR file from your local computer. Set theVersion label
as02-rest-api-mysql-source
. - Choose the
Presets
asSingle instance (free tier)
. - Click on Next
- In the
Service Role
section, choose theUse an existing service role
option and select your preferred role from the dropdown menu. - In the
Instances
section, chooseUse an existing EC2 instance profile
and select your preferred profile from the dropdown menu. - If you are facing any issue in this page like no service role is showing, you can refer to this doc: https://github.com/amideb/Beanstalk-Instance-Profile-Troubleshooting
- Otherwise, Click on Next
- Scroll down
- In the
Database
section, click onEnable Database
. Selectmysql
for Engine. Provide the username and password. - Make Database deletion Policy to
Delete
. - Click
Skip to review
.
- Review all your configurations and if everything is according to your requirements, click on
Submit
.
-
AWS Elastic Beanstalk will then automatically handle the deployment, from capacity provisioning, load balancing, and automatic scaling to application health monitoring. After a few minutes, your environment should be up and running.
-
Note: The environment URL will be displayed in the AWS Elastic Beanstalk console once the environment is successfully launched. You can use this URL to access your deployed Spring Boot REST API.
Congratulations, your Spring Boot MySQL REST API is now successfully deployed on AWS Elastic Beanstalk! ππ
Your application is now running in the cloud and is accessible from anywhere. This is a significant accomplishment that will help drive your project forward. I encourage you to continue exploring and pushing the boundaries of what you can achieve.
Remember, every step forward is a step towards success. Well done! ππ₯³
Congratulations on successfully deploying your Spring Boot MySQL REST API on AWS Elastic Beanstalk! ππ
This is a major achievement and I hope it brings you one step closer to your goals. Keep up the great work and continue to push the boundaries of what you can accomplish! ππ
Don't forget to celebrate this moment, you've earned it! π₯³π