aws / aws-secretsmanager-jdbc

The AWS Secrets Manager JDBC Library enables Java developers to easily connect to SQL databases using secrets stored in AWS Secrets Manager.
Apache License 2.0
160 stars 76 forks source link

LiquiBase does not work with aws-secretsmanager-jdc #47

Open turnej2-altec opened 4 years ago

turnej2-altec commented 4 years ago

Same issues that was happening with flyway. URL is not valid for liquiBase due to the URL beginning with jdbc-secretsmanager

oridool commented 3 years ago

I'm using Springboot 2.3.4 and no problem with liquibase 4.1.1.

My application.yml:

spring:
  liquibase:
    change-log: classpath:db/config/db.changelog-baseline.xml
    enabled: true
    user : ${postgres.admin-user}

  datasource:
    url : jdbc-secretsmanager:postgresql://${postgres.hostname}:${postgres.port}/${service.name}?currentSchema=${spring.jpa.default-schema}
    jdbc-url : ${spring.datasource.url}
    username: ${postgres.app-user}
    driverClassName: com.amazonaws.secretsmanager.sql.AWSSecretsManagerPostgreSQLDriver
willtong1234 commented 3 years ago

Thank you for opening this issue - we are looking into it.