We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
DEPLOYING SPRING BOOT-
MYSQL
DB: MySQL Services -> RDS -> Databases -> Create db -> Choose engine type -> MySQL DB instance identifier -> Give a custom name Public access : Yes Create DB.
Accessing deployed DB through MySQL
workbench Open MySQL workbench Setup new connection -> Hostname = copy endpoint from RDS console and add here, Enter uid, password
Packaging the project into the jar file
Edit the application.properties file, make use of AWS environment variables in below manner: spring.datasource.url=jdbc:mysql://${RDS_HOSTNAME:localhost}:${RDS_PORT:3306}/$ {RDS_DB_NAME:be_chingiringi_v1} spring.datasource.username=${RDS_USERNAME:root} spring.datasource.password=${RDS_PASSWORD:password} mvn clean package
EC2: Running Spring Boot
Use the DB details configured above and add those in application.properties file. Inbound rules: Add rule-> customer TCP -> MySQL -> Add rule. Mvn install : will create jar file. AWS -> services -> Elastic Beanstalk -> create a web app -> platform java Configure more -> edit database -> edit username and password. -done -> create app