Syntax
Parameters
| Parameter | Description |
|---|---|
<location_name> | A unique identifier for the location within your account. |
SOURCE | Must be MONGODB. |
URI | MongoDB connection string (mongodb:// or mongodb+srv://). Required. The deployment must be a replica set or sharded cluster; standalone servers have no change streams. |
USER, PASSWORD | Credentials for the connection. Optional, but must be supplied together. Credentials embedded in the URI work as well. |
TLS_CA_FILE | Optional CA certificate for deployments with a private certificate authority. |
DESCRIPTION | Optional metadata describing the location’s purpose. |
TLS
TLS follows the URI:mongodb+srv:// connections use TLS, and plain mongodb:// URIs can request it with the tls=true URI option.
Example
Related
- MongoDB CDC: source prerequisites and end-to-end setup.
- CREATE STREAM: bind a stream to a collection in this location.
- CREATE LOCATION: location objects in general.
- DROP LOCATION