• Task
  • Version · 6.0
  • Create

Authenticate Liquibase to MongoDB with AWS IAM

Last updated: September 29, 2026

Before you begin

Procedure

1

Install required tools

2

Configure your AWS credentials

Sign in to AWS and choose your credential method

Verify your credentials are working:

aws sts get-caller-identity
3

Optional: Assume a different IAM role

liquibase.mongodb.aws.region=your_aws_region
liquibase.mongodb.aws.roleArn=your_role_arn
liquibase.mongodb.aws.sessionName=your_session_name
4

Optional: Run changesets with the mongosh native executor

5

DocumentDB only: Open a network tunnel

loading
6

DocumentDB only: Download the TLS certificate bundle

Choose your operating system

7

DocumentDB only: Import the CA certificate bundle into a Java trust store

Choose your operating system

8

Configure the Liquibase connection string to authenticate to the database cluster

Choose your database connection method

9

Confirm the connection is successful

liquibase --search-path=your_changelog_dir status --changelog-file=your_changelog_file

Results

Example of successful output
loading