|
| 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>`. |
0 commit comments