|
| 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-dataFederation-create>` 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-fdi-settings>` you |
| 21 | + can specify in the {+cluster+} configuration file. |
| 22 | +- View and copy :ref:`sample configuration files |
| 23 | + <example-fdi-config-file>`. |
| 24 | + |
| 25 | +.. _required-fdi-settings: |
| 26 | + |
| 27 | +Required {+adf+} Settings |
| 28 | +--------------------------------------- |
| 29 | + |
| 30 | +|service| requires the following settings to create a {+fdi+} with |
| 31 | +the {+atlas-cli+}. You must specify these {+fdi+} settings either in the configuration |
| 32 | +file or as flags in the command: |
| 33 | + |
| 34 | +.. list-table:: |
| 35 | + :header-rows: 1 |
| 36 | + :widths: 20 10 70 |
| 37 | + |
| 38 | + * - Field |
| 39 | + - Type |
| 40 | + - Description |
| 41 | + |
| 42 | + * - ``cloudProviderConfig.`` |
| 43 | + ``aws`` |
| 44 | + - object |
| 45 | + - Cloud provider linked to this {+fdi+}. |
| 46 | + |
| 47 | + * - ``cloudProviderConfig.`` |
| 48 | + ``aws.`` |
| 49 | + ``roleId`` |
| 50 | + - string |
| 51 | + - Unique identifier of the role that the {+fdi+} can use to access the data stores. |
| 52 | + Required if specifying ``cloudProviderConfig``. |
| 53 | + |
| 54 | + * - ``cloudProviderConfig.`` |
| 55 | + ``aws.`` |
| 56 | + ``testS3Bucket`` |
| 57 | + - string |
| 58 | + - Name of the |s3| data bucket that the provided role ID is authorized to access. Required if specifying ``cloudProviderConfig``. |
| 59 | + |
| 60 | + * - ``dataProcessRegion.`` |
| 61 | + ``cloudProvider`` |
| 62 | + - string |
| 63 | + - Name of the cloud service that hosts the {+fdi+}\'s data stores. For example, ``AWS``, ``GCP``, ``AZURE``, ``TENANT``, or ``SERVERLESS``. |
| 64 | + |
| 65 | + * - ``dataProcessRegion.`` |
| 66 | + ``region`` |
| 67 | + - string |
| 68 | + - Name of the region to which the {+fdi+} routes client connections. For the full |
| 69 | + list of available regions, see :ref:`Cloud Providers and Regions <create-cluster-cloud-provider-region>`. |
| 70 | + |
| 71 | + * - ``name`` |
| 72 | + - string |
| 73 | + - Human-readable label that identifies the {+fdi+}. |
| 74 | + |
| 75 | + * - ``storage.`` |
| 76 | + ``stores.`` |
| 77 | + ``name`` |
| 78 | + - string |
| 79 | + - Human-readable label that identifies the data store. |
| 80 | + The ``databases.[n].collections.[n].dataSources.[n].storeName`` field references |
| 81 | + this value as part of the mapping configuration. To use |service| as a data store, |
| 82 | + the {+fdi+} requires a serverless instance or an ``M10`` or higher {+cluster+}. |
| 83 | + |
| 84 | + * - ``storage.`` |
| 85 | + ``stores.`` |
| 86 | + ``provider`` |
| 87 | + - string |
| 88 | + - The :ref:`type of data store <config-adf>`. For example, ``atlas``, ``http``, ``online_archive``, ``s3``, or ``DataLakeAzureBlobStore``. |
| 89 | + |
| 90 | + |
| 91 | +For a full list of available settings, see |
| 92 | +the request body schema in the API specification: |
| 93 | +:oas-atlas-op:`Create One Federated Database Instance in One Project </createFederatedDatabase>`. |
| 94 | + |
| 95 | +.. _example-fdi-config-file: |
| 96 | + |
| 97 | +Example {+adf+} Configuration File |
| 98 | +------------------------------------------------ |
| 99 | + |
| 100 | +To create a {+fdi+}, specify the |
| 101 | +fields you want to update as shown in the following example file: |
| 102 | + |
| 103 | +.. literalinclude:: /includes/data-federation-instance-config-file.json |
0 commit comments