I have an app that I’m deploying to AWS ECS. The service continually restarts as it keeps giving me this error in the ECS logs:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘liquibase’ defined in class path resource [CLASS_PATH]: java.sql.SQLException: Access denied for user ‘root’@’IP_ADDRESS’ (using password: YES)
Im using Gradle to build the app and the db settings are defined in the gradle.properties file but even when hardcoding my username and password, I get the same access denied issue. I confirmed that the RDS is up and running and reset the master password, but no luck. I also tried storing the DB connection values in a secret in AWS secret manager but can’t seem to call that secret down in the gradle.properties. When I deploy the app and Gradle builds it, is there anyway to pull these connection values into the build so that the app can connect to the RDS successfully?
Also, I’m new to using liquibase but I have an application.yml where I’m configuringit and setting the DB connection values there. Even when hardcoding the username and password there, I still get the error message that the bean couldn’t be created.
user24679159 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.