Skip to content

Commit 38d0448

Browse files
committed
(DOCSP-31036) Adds example data federation config file.
1 parent 9890cad commit 38d0448

File tree

4 files changed

+157
-1
lines changed

4 files changed

+157
-1
lines changed

snooty.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ toc_landing_pages = [
2525

2626
[constants]
2727
aagent = "Automation Agent"
28+
adf = "Atlas Data Federation"
2829
atlas-cli = "Atlas CLI"
2930
atlas-cli-full = "MongoDB Atlas CLI"
3031
atlas-cli-version = "1.9.1"
@@ -42,6 +43,9 @@ data-lake-store = "data store"
4243
database-deployment = "database deployment"
4344
database-deployments = "database deployments"
4445
default-profile = ":ref:`default profile <mcli-profiles>`"
46+
df = "Data Federation"
47+
FDI = "Federated Database Instance"
48+
fdi = "federated database instance"
4549
mcli = "MongoDB CLI"
4650
mcli-long = "MongoDB Command Line Interface (``mongocli``)"
4751
mcli-version = "1.23.1"
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"cloudProviderConfig": {
3+
"aws": {
4+
"externalId": "string",
5+
"iamAssumedRoleARN": "arn:aws:iam::123456789012:root",
6+
"iamUserARN": "string",
7+
"roleId": "string"
8+
}
9+
},
10+
"dataProcessRegion": {
11+
"cloudProvider": "AWS",
12+
"region": "SYDNEY_AUS"
13+
},
14+
"groupId": "32b6e34b3d91647abb20e7b8",
15+
"hostnames": [
16+
"string"
17+
],
18+
"name": "string",
19+
"state": "UNVERIFIED",
20+
"storage": {
21+
"databases": [
22+
{
23+
"collections": [
24+
{
25+
"dataSources": [
26+
{
27+
"allowInsecure": false,
28+
"collection": "string",
29+
"collectionRegex": "string",
30+
"database": "string",
31+
"databaseRegex": "string",
32+
"defaultFormat": ".avro",
33+
"path": "string",
34+
"provenanceFieldName": "string",
35+
"storeName": "string",
36+
"urls": [
37+
"string"
38+
]
39+
}
40+
],
41+
"name": "string"
42+
}
43+
],
44+
"maxWildcardCollections": 100,
45+
"name": "string",
46+
"views": [
47+
{
48+
"name": "string",
49+
"pipeline": "string",
50+
"source": "string"
51+
}
52+
]
53+
}
54+
],
55+
"stores": [
56+
{
57+
"name": "string",
58+
"provider": "string",
59+
"additionalStorageClasses": [
60+
"STANDARD"
61+
],
62+
"bucket": "string",
63+
"delimiter": "string",
64+
"includeTags": false,
65+
"prefix": "string",
66+
"public": false,
67+
"region": "US_GOV_WEST_1"
68+
}
69+
]
70+
}
71+
}
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
.. _atlas-cli-data-federation-config-file:
2+
3+
========================================
4+
{+adf+} Configuration File
5+
========================================
6+
7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 1
11+
:class: singlecol
12+
13+
You can use an {+adf+} configuration file to specify the required
14+
settings for :ref:`creating a federated database
15+
<atlas-data-federation>` using the {+atlas-cli+}. The
16+
{+atlas-cli+} accepts ``.json`` {+df+} configuration files.
17+
18+
Use the following resources to:
19+
20+
- Learn the :ref:`required settings <required-dfi-settings>` you
21+
can specify in the {+cluster+} configuration file.
22+
- View and copy :ref:`sample configuration files
23+
<example-dfi-config-file>`.
24+
25+
.. _required-dfi-settings:
26+
27+
Required {+adf+} Settings
28+
---------------------------------------
29+
30+
|service| requires the following settings to create a {+dfi+} with
31+
the {+atlas-cli+}. You must specify these {+dfi+} settings either in the configuration file or as flags in the command:
32+
33+
.. list-table::
34+
:header-rows: 1
35+
:widths: 20 10 70
36+
37+
* - Field
38+
- Type
39+
- Description
40+
41+
* - ``cloudProviderConfig.aws``
42+
- object
43+
- Cloud provider linked to this {+dfi+}.
44+
45+
* - ``cloudProviderConfig.roleId``
46+
- string
47+
- Unique identifier of the role that the {+dfi+} can use to access the data stores.
48+
Required if specifying ``cloudProviderConfig``.
49+
50+
* - ``cloudProviderConfig.testS3Bucket``
51+
- string
52+
- Name of the |s3| data bucket that the provided role ID is authorized to access. Required if specifying ``cloudProviderConfig``.
53+
54+
* - ``dataProcessRegion.cloudProvider``
55+
- string
56+
- Name of the cloud service that hosts the {+dfi+}\'s data stores. For example, ``AWS``, ``GCP``, ``AZURE``, ``TENANT``, ``SERVERLESS``.
57+
58+
* - ``dataProcessRegion.region``
59+
- string
60+
- Name of the region to which the {+dfi+} routes client connections. For the full
61+
list of available regions, see :ref:`Cloud Providers and Regions <create-cluster-cloud-provider-region>`.
62+
63+
* - ``name``
64+
- string
65+
- Human-readable label that identifies the {+dfi+}.
66+
67+
* - ``storage.stores.name``
68+
- string
69+
- Human-readable label that identifies the data store.
70+
The ``databases.[n].collections.[n].dataSources.[n].storeName`` field references
71+
this value as part of the mapping configuration. To use |service| as a data store,
72+
the {+dfi+} requires a serverless instance or an ``M10`` or higher {+cluster+}.
73+
74+
* - ``storage.stores.provider``
75+
- string
76+
- The :ref:`type of data store <config-adf>`. For example, ``atlas``, ``
77+
78+
79+
For a full list of available settings, see
80+
the request body schema in the API specification:
81+
:oas-atlas-op:`Create One Federated Database Instance in One Project </createFederatedDatabase>`.

submodules/mongodb-atlas-cli

Submodule mongodb-atlas-cli updated 468 files

0 commit comments

Comments
 (0)