Back to destination list
Official
MongoDB destination integration documentation
This destination plugin lets you sync data from any CloudQuery source to a MongoDB database
Loading plugin documentation
This destination plugin lets you sync data from any CloudQuery source to a MongoDB database
Loading plugin documentation
We use tracking cookies to understand how you use the product and help us improve it. Please accept cookies to help us improve. You can always opt out later via the link in the footer.
localhost:27017
. The (top level) spec section is described in the Destination Spec Reference.kind: destination
spec:
name: "mongodb"
path: "cloudquery/mongodb"
registry: "cloudquery"
version: "v2.7.1"
send_sync_summary: true
spec:
# required, a connection string in the format mongodb://localhost:27017
connection_string: "${MONGODB_CONNECTION_STRING}"
# required, the name of the database to sync to
database: "${MONGODB_DATABASE_NAME}"
# Optional parameters:
# batch_size: 10000 # 10K
# batch_size_bytes: 4194304 # 4 MiB
# aws_credentials: # <- Use this to specify non-default role assumption parameters
# default: true # Use the default credentials chain
# local_profile: "mongodb-profile" # Use a local profile instead of the default one
# role_arn: "arn:aws:iam::123456789012:role/role_name" # Specify the role to assume
# external_id: "external_id" # Used when assuming a role
# role_session_name: "session_name" # Used when assuming a role
batch_size
and batch_size_bytes
.connection_string
(string
) (required)"mongodb://username:password@hostname:port/database"
basic connection"mongodb+srv://username:[email protected]/database"
connecting to a MongoDB Atlas cluster"mongodb://localhost:27017/myDatabase?authSource=admin"
specify authentication sourcedatabase
(string
) (required)batch_size
(integer
) (optional) (default: 1000
)batch_size_bytes
(integer
) (optional) (default: 4194304
(= 4 MiB))aws_credentials
(aws_credentials) (optional)default
(bool
) (optional)true
then AWS SDK will use the default credentials based on the AWS Credential chainlocal_profile
(string
)[default]
aws_access_key_id=xxxx
aws_secret_access_key=xxxx
[user1]
aws_access_key_id=xxxx
aws_secret_access_key=xxxx
local_profile
should be set to either default
or user1
.role_arn
(string
)role_session_name
(string
)role_arn
.external_id
(string
)role_arn
.