atlas dataFederation create
Creates a new Data Federation database.
To use this command, you must authenticate with a user account or an API key with the Project Owner role.
Syntax
atlas dataFederation create <name> [options]
Arguments
Name | Type | Required | Description |
---|---|---|---|
name | string | true | Name of the data federation database. |
Options
Name | Type | Required | Description |
---|---|---|---|
--awsRoleId | string | false | Amazon Resource Name (ARN) of the role which Atlas Data Federation uses for accessing the data stores. Mutually exclusive with --file. |
--awsTestS3Bucket | string | false | Name of an Amazon S3 data bucket that Atlas Data Federation uses to validate the provided role. Mutually exclusive with --file. |
-f, --file | string | false | Path to an optional JSON configuration file that defines data federation settings. To learn more about data federation configuration files for the Atlas CLI, see https://dochub.mongodb.org/core/atlas-cli-json-data-federation-config. Mutually exclusive with --region, --awsRoleId, --awsTestS3Bucket. |
-h, --help | false | help for create | |
-o, --output | string | false | Output format. Valid values are json, json-path, go-template, or go-template-file. To see the full output, use the -o json option. |
--projectId | string | false | Hexadecimal string that identifies the project to use. This option overrides the settings in the configuration file or environment variable. |
--region | string | false | Name of the region to which Atlas Data Federation routes client connections for data processing. Mutually exclusive with --file. |
Inherited Options
Name | Type | Required | Description |
---|---|---|---|
-P, --profile | string | false | Name of the profile to use from your configuration file. To learn about profiles for the Atlas CLI, see https://dochub.mongodb.org/core/atlas-cli-save-connection-settings. |
Output
If the command succeeds, the CLI returns output similar to the following sample. Values in brackets represent your values.
Data federation <Name> created.
Examples
# create data federation database: atlas dataFederation create DataFederation1 --region us_east_1 --awsRoleId role --awsTestS3Bucket bucket