Docs Menu

Docs HomeMongoDB Atlas

Generate Wildcard Collections

You can dynamically generate collection names that map to data in your S3 bucket. To dynamically generate collection names, specify the wildcard, *, as the value for the collection name setting in your federated database instance storage configuration.

You can use the storageSetConfig command to configure the settings for generating wildcard (*) collections.

To generate wildcard collections in your federated database instance storage configuration that map to data in your S3 bucket, configure the following settings in your federated database instance storage configuration:

Example

"databases" : [
{
"name" : "<db-name>",
"collections" : [
{
"name" : "*",
"dataSources" : [
{
"storeName" : "<s3-store-name>",
"path" : "{collectionName()}"
}
]
}
],
"maxWildcardCollections" : <integer>,
}
]

You can also use the create administration command and the federated database instance User Interface JSON Editor to configure the settings for generating wildcard collections. You can't use the federated database instance User Interface Visual Editor to configure the settings for generating wildcard collections.

←  Create From the UIDefine Path for S3 Data →
Share Feedback
© 2023 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2023 MongoDB, Inc.