Skip to main content
DocumentDB only allows access from inside your VPC, so connect through an SSH tunnel, AWS PrivateLink, or BYOC with VPC peering. When you pick a PrivateLink connection, Artie turns off Use TLS because DocumentDB can’t present a valid TLS certificate over PrivateLink.

Required settings

  • Cluster endpoint
  • Port (default is 27017)
  • Service account
  • Database name (ensure the database has change stream enabled)
You can find the cluster endpoint by going to the AWS console, selecting the DocumentDB cluster and go to the “Configuration” tab.DocumentDB cluster endpoint

Setting up change streams and a service account

DocumentDB keeps change stream events for 3 hours by default. If a pipeline is paused or behind for longer, its resume token expires and the affected collections must be backfilled again. Raise change_stream_log_retention_duration in the cluster parameter group (up to 7 days) to cover how long you might pause the pipeline. See Using change streams with Amazon DocumentDB.
setup.js

Advanced

DocumentDB collections have no enforced schema, so different documents can store the same field with different types. By default, Artie infers the column type from the first non-null value it sees. If a later document stores that field with a different type, Artie lands the column as a string.The Cast all columns to string setting makes this explicit: every column is stored as a string as it is discovered, regardless of the underlying BSON type. Nested objects are stored as JSON strings.This setting applies to new columns as they are discovered. Existing destination columns keep their current types. To cast all columns as strings on a pipeline with an existing destination table, rebuild the table after enabling this setting.You can enable this from your pipeline’s destination advanced settings.