New! – Spin up instant copies of your dev databases in the cloud for free Learn more

Flyway Documentation

Poll

Vault URL

Flyway Teams

Description

The REST API URL of your Vault server, including the API version. Currently only supports API version v1.

Example: http://localhost:8200/v1/

Usage

Commandline

./flyway -vault.url="http://localhost:8200/v1/" info

Configuration File

flyway.vault.url=http://localhost:8200/v1/

Environment Variable

FLYWAY_VAULT_URL=http://localhost:8200/v1/

API

Configuration configuration = new ClassicConfiguration();
VaultApiExtension apiExtension = configuration.getExtensionConfiguration(VaultApiExtension.class);
apiExtension.setVaultUrl("http://localhost:8200/v1/");

Gradle

flyway {
    vaultConfiguration {
        vaultUrl = 'http://localhost:8200/v1/'
    }
}

Maven

<configuration>
    <vaultConfiguration>
        <vaultUrl>http://localhost:8200/v1/</vaultUrl>
    </vaultConfiguration>
</configuration>