Reference S3 Files with Liquibase Commands
Note: Using Liquibase Pro with S3 is available in Liquibase Pro v4.17.0 and later.
Correct configuration of paths to locate files is vital to using Liquibase files stored in S3. The following tables provide high-level guidance to read or write remote Liquibase files.
Note: An output of log files to S3 is not yet available.
Legend
- search-path means the user-supplied
search-path
property via any standard configuration: the CLI, environment variables,liquibase.properties
file, or the JAVA_OPTS Environment Variable. The search path locates files to read and is not used to write files. For more information, see How Liquibase Finds Files: Liquibase Search Path and Use --search-path with S3.
Use Absolute Paths with Remote Files in AWS S3
File(s) | Commands | Absolute Path | Search-Path and Relative Path | Search-Path Only | Example |
---|---|---|---|---|---|
Generating a changelog (see below for calling a changelog in a command) | -- | -- | Relative changelog path required to preserve DBCL integrity. | ||
flowfile (such as liquibase flowfile.yaml ) |
flow | -- | -- |
|
|
Checks settings file (such as liquibase.checks-settings.conf ) |
checks (all subcommands) | -- | -- |
|
|
Defaults file
(such as liquibase.properties )
|
All | -- | -- |
|
|
init project files
|
init project | -- | -- |
The |
|
output-files
|
All commands which support the --output-file property. |
-- | -- |
|
|
driver.properties
|
All that support the driver-properties property. |
-- | -- |
|
|
snapshot.json
|
-- | -- |
|
Use Relative + Searchpath for changelogs in AWS S3
File(s) | Commands | Absolute Path | Search-Path and Relative Path | Search-Path Only | Example |
---|---|---|---|---|---|
Using a changelog (changelog file/resources)
|
|
-- |
A relative changelog path is required to preserve the Liquibase tracking table integrity. |
Use searchpath with remote files in AWS S3
File(s) | Commands | Absolute Path | Search-Path and Relative Path | Search-Path Only | Example |
---|---|---|---|---|---|
Snapshots (such as mysnapshot.json ) |
|
||||
Native executor config files (such as liquibase.sqlplus.conf , liquibase.sqlcmd.conf , liquibase.psql.conf ) |
There is no property to directly specify a native executor configuration file path. It is located using the |