Hello.
I have a Spring Boot application that locally connects to the MySQL database through application.properties as follows:
spring.datasource.url = jdbc:mysql://localhost:3306/dbname spring.datasource.username = someusername spring.datasource.password = somepassword spring.jpa.show-sql = true spring.jpa.hibernate.ddl-auto = update spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect Now I am preparing an application to deploy to Amazon. I created a database there. It says here that after creation I received the following environment variables:
RDS_HOSTNAME - The hostname of the DB instance.
RDS_DB_NAME - The database name, ebdb.
RDS_USERNAME - The username that you configured for your database.
RDS_PASSWORD - The password that you configured for your database.
RDS_PORT - This port accepts connections. The default value varies between DB engines.
Question: can I set these variables in my application.properties and limit it to this, or do I need additional settings?
I read a lot about it, but I didn’t find an example of settings with these variables.
I would be very grateful for the example settings.