Skip to content

Commit 8e14751

Browse files
fmenezeswtrockizach-carr
authored
CLOUDP-181606 Deprecate current Data Lake commands (#2048)
Co-authored-by: Wojciech Trocki <[email protected]> Co-authored-by: zach-carr <[email protected]>
1 parent 7ecd228 commit 8e14751

File tree

55 files changed

+754
-986
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+754
-986
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ gen-docs: gen-docs-mongocli gen-docs-atlascli ## Generate docs for commands
111111
.PHONY: gen-docs-mongocli
112112
gen-docs-mongocli: ## Generate docs for mongocli commands
113113
@echo "==> Generating docs for mongocli"
114-
go run ./tools/mongoclidocs/main.go
114+
go run -ldflags "$(MCLI_LINKER_FLAGS)" ./tools/mongoclidocs/main.go
115115

116116
.PHONY: gen-docs-atlascli
117117
gen-docs-atlascli: ## Generate docs for atlascli commands
118118
@echo "==> Generating docs for atlascli"
119-
go run ./tools/atlasclidocs/main.go
119+
go run -ldflags "$(ATLAS_LINKER_FLAGS)" ./tools/atlasclidocs/main.go
120120

121121
.PHONY: build
122122
build: build-mongocli ## Generate a binary for mongocli

build/ci/evergreen.yml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -794,27 +794,6 @@ tasks:
794794
MCLI_OPS_MANAGER_URL: ${mcli_ops_manager_url}
795795
MCLI_SERVICE: cloud
796796
E2E_TAGS: atlas,networking
797-
# datalake requires cloud provider role authentication and an s3 bucket created
798-
- name: atlas_datalake_e2e
799-
tags: ["e2e","datalake","atlas"]
800-
must_have_test_results: true
801-
depends_on:
802-
- name: compile
803-
variant: "code_health"
804-
patch_optional: true
805-
commands:
806-
- func: "install gotestsum"
807-
- func: "e2e test"
808-
vars:
809-
MCLI_ORG_ID: ${atlas_org_id}
810-
MCLI_PROJECT_ID: ${atlas_project_id}
811-
MCLI_PRIVATE_API_KEY: ${atlas_private_api_key}
812-
MCLI_PUBLIC_API_KEY: ${atlas_public_api_key}
813-
MCLI_OPS_MANAGER_URL: ${mcli_ops_manager_url}
814-
MCLI_SERVICE: cloud
815-
E2E_TAGS: atlas,datalake
816-
E2E_TEST_BUCKET: ${e2e_test_bucket}
817-
E2E_CLOUD_ROLE_ID: ${e2e_cloud_role_id}
818797
# datafederation requires cloud provider role authentication and an s3 bucket created
819798
- name: atlas_datafederation_db_e2e
820799
tags: ["e2e","datafederation","atlas"]
@@ -1505,16 +1484,6 @@ buildvariants:
15051484
go_base_path: ""
15061485
tasks:
15071486
- name: ".e2e .livemigrations .atlas"
1508-
- name: e2e_atlas_datalake
1509-
display_name: "E2E Atlas Datalake Tests"
1510-
run_on:
1511-
- rhel80-small
1512-
expansions:
1513-
go_root: "/opt/golang/go1.19"
1514-
go_bin: "/opt/golang/go1.19/bin"
1515-
go_base_path: ""
1516-
tasks:
1517-
- name: ".e2e .datalake .atlas"
15181487
- name: e2e_atlas_datafederation
15191488
display_name: "E2E Atlas Data Federation Tests"
15201489
run_on:

docs/atlascli/command/atlas-dataLakes-create.txt renamed to docs/atlascli/command/atlas-dataFederation-create.txt

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
.. _atlas-dataLakes-create:
1+
.. _atlas-dataFederation-create:
22

3-
======================
4-
atlas dataLakes create
5-
======================
3+
===========================
4+
atlas dataFederation create
5+
===========================
66

77
.. default-domain:: mongodb
88

@@ -12,17 +12,17 @@ atlas dataLakes create
1212
:depth: 1
1313
:class: singlecol
1414

15-
Create a new federated database instance for your project.
15+
Creates a new Data Federation database.
1616

17-
To learn more about Atlas Data Federation (previously named Atlas Data Lake), see https://www.mongodb.com/docs/atlas/data-federation/overview/.
17+
To use this command, you must authenticate with a user account or an API key that has the Project Owner role.
1818

1919
Syntax
2020
------
2121

2222
.. code-block::
2323
:caption: Command Syntax
2424

25-
atlas dataLakes create <name> [options]
25+
atlas dataFederation create <name> [options]
2626

2727
.. Code end marker, please don't delete this comment
2828

@@ -40,7 +40,7 @@ Arguments
4040
* - name
4141
- string
4242
- true
43-
- Name of the federated database instance to create.
43+
- Name of the data federation database.
4444

4545
Options
4646
-------
@@ -53,6 +53,18 @@ Options
5353
- Type
5454
- Required
5555
- Description
56+
* - --awsRoleId
57+
- string
58+
- false
59+
- Amazon Resource Name (ARN) of the role which Atlas Data Federation uses for accessing the data stores.
60+
* - --awsTestS3Bucket
61+
- string
62+
- false
63+
- Name of an Amazon S3 data bucket which Atlas Data Federation uses to validate the provided role.
64+
* - -f, --file
65+
- string
66+
- false
67+
- Path to an optional JSON configuration file that defines data federation settings.
5668
* - -h, --help
5769
-
5870
- false
@@ -65,14 +77,10 @@ Options
6577
- string
6678
- false
6779
- Hexadecimal string that identifies the project to use. This option overrides the settings in the configuration file or environment variable.
68-
* - --role
80+
* - --region
6981
- string
70-
- true
71-
- Amazon Resource Name (ARN) of the role which Atlas Data Federation uses for accessing the data stores.
72-
* - --testBucket
73-
- string
74-
- true
75-
- Name of an Amazon S3 data bucket which Atlas Data Federation uses to validate the provided role.
82+
- false
83+
- Name of the region to which Atlas Data Federation routes client connections for data processing.
7684

7785
Inherited Options
7886
-----------------
@@ -97,13 +105,13 @@ If the command succeeds, the CLI returns output similar to the following sample.
97105

98106
.. code-block::
99107

100-
Data lake '<Name>' created.
101-
108+
Data federation <Name> created.
102109

103110
Examples
104111
--------
105112

106113
.. code-block::
107114

108-
# Create a federated database instance named myFDI in the project with the ID 5e2211c17a3e5a48f5497de3:
109-
atlas dataLakes create myFDI --projectId 5e2211c17a3e5a48f5497de3 --output json
115+
# create data federation database:
116+
atlas dataFederation create DataFederation1 --region us_east_1 --awsRoleId role --awsTestS3Bucket bucket
117+

docs/atlascli/command/atlas-privateEndpoints-dataLakes-aws-delete.txt renamed to docs/atlascli/command/atlas-dataFederation-delete.txt

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
.. _atlas-privateEndpoints-dataLakes-aws-delete:
1+
.. _atlas-dataFederation-delete:
22

3-
===========================================
4-
atlas privateEndpoints dataLakes aws delete
5-
===========================================
3+
===========================
4+
atlas dataFederation delete
5+
===========================
66

77
.. default-domain:: mongodb
88

@@ -12,7 +12,7 @@ atlas privateEndpoints dataLakes aws delete
1212
:depth: 1
1313
:class: singlecol
1414

15-
Delete a specific Data Lake private endpoint for your project.
15+
Remove the specified data federation database from your project.
1616

1717
To use this command, you must authenticate with a user account or an API key that has the Project Owner role.
1818

@@ -22,7 +22,7 @@ Syntax
2222
.. code-block::
2323
:caption: Command Syntax
2424

25-
atlas privateEndpoints dataLakes aws delete <privateEndpointId> [options]
25+
atlas dataFederation delete <name> [options]
2626

2727
.. Code end marker, please don't delete this comment
2828

@@ -37,10 +37,10 @@ Arguments
3737
- Type
3838
- Required
3939
- Description
40-
* - privateEndpointId
40+
* - name
4141
- string
4242
- true
43-
- Unique 22-character alphanumeric string that identifies the private endpoint.
43+
- Name of the data federation database.
4444

4545
Options
4646
-------
@@ -89,12 +89,14 @@ If the command succeeds, the CLI returns output similar to the following sample.
8989

9090
.. code-block::
9191

92-
Private endpoint '<Name>' deleted
92+
'<Name>' deleted
9393

9494

9595
Examples
9696
--------
9797

9898
.. code-block::
9999

100-
atlas privateEndpoint dataLake aws delete vpce-0fcd9d80bbafe1607 --force
100+
# deletes data federation 'DataFederation1':
101+
atlas dataFederation delete DataFederation1
102+

docs/atlascli/command/atlas-dataLakes-describe.txt renamed to docs/atlascli/command/atlas-dataFederation-describe.txt

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
.. _atlas-dataLakes-describe:
1+
.. _atlas-dataFederation-describe:
22

3-
========================
4-
atlas dataLakes describe
5-
========================
3+
=============================
4+
atlas dataFederation describe
5+
=============================
66

77
.. default-domain:: mongodb
88

@@ -12,17 +12,17 @@ atlas dataLakes describe
1212
:depth: 1
1313
:class: singlecol
1414

15-
Return the details for the specified federated database instance.
15+
Return the details for the specified data federation database for your project.
1616

17-
To learn more about Atlas Data Federation (previously named Atlas Data Lake), see https://www.mongodb.com/docs/atlas/data-federation/overview/.
17+
To use this command, you must authenticate with a user account or an API key that has the Project Owner role.
1818

1919
Syntax
2020
------
2121

2222
.. code-block::
2323
:caption: Command Syntax
2424

25-
atlas dataLakes describe <name> [options]
25+
atlas dataFederation describe <name> [options]
2626

2727
.. Code end marker, please don't delete this comment
2828

@@ -40,7 +40,7 @@ Arguments
4040
* - name
4141
- string
4242
- true
43-
- Name of the federated database instance to retrieve.
43+
- Name of the data federation database.
4444

4545
Options
4646
-------
@@ -82,21 +82,11 @@ Inherited Options
8282
- false
8383
- 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.
8484

85-
Output
86-
------
87-
88-
If the command succeeds, the CLI returns output similar to the following sample. Values in brackets represent your values.
89-
90-
.. code-block::
91-
92-
NAME STATE
93-
<Name> <State>
94-
95-
9685
Examples
9786
--------
9887

9988
.. code-block::
10089

101-
# Return the details for the federated database instance named myFDI in the project with the ID 5e2211c17a3e5a48f5497de3:
102-
atlas dataLakes describe myFDI --projectId 5e2211c17a3e5a48f5497de3 --output json
90+
# retrieves data federation 'DataFederation1':
91+
atlas dataFederation describe DataFederation1
92+

docs/atlascli/command/atlas-dataLakes-list.txt renamed to docs/atlascli/command/atlas-dataFederation-list.txt

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
.. _atlas-dataLakes-list:
1+
.. _atlas-dataFederation-list:
22

3-
====================
4-
atlas dataLakes list
5-
====================
3+
=========================
4+
atlas dataFederation list
5+
=========================
66

77
.. default-domain:: mongodb
88

@@ -12,17 +12,17 @@ atlas dataLakes list
1212
:depth: 1
1313
:class: singlecol
1414

15-
Return all federated database instances for your project.
15+
Returns all data federation databases for your project.
1616

17-
To learn more about Atlas Data Federation (previously named Atlas Data Lake), see https://www.mongodb.com/docs/atlas/data-federation/overview/.
17+
To use this command, you must authenticate with a user account or an API key that has the Project Read Only role.
1818

1919
Syntax
2020
------
2121

2222
.. code-block::
2323
:caption: Command Syntax
2424

25-
atlas dataLakes list [options]
25+
atlas dataFederation list [options]
2626

2727
.. Code end marker, please don't delete this comment
2828

@@ -49,6 +49,10 @@ Options
4949
- string
5050
- false
5151
- Hexadecimal string that identifies the project to use. This option overrides the settings in the configuration file or environment variable.
52+
* - --type
53+
- string
54+
- false
55+
- Type of Federated Database Instances to return.
5256

5357
Inherited Options
5458
-----------------
@@ -71,5 +75,6 @@ Examples
7175

7276
.. code-block::
7377

74-
# Return a JSON-formatted list of all federated database instances in the project with the ID 5e2211c17a3e5a48f5497de3:
75-
atlas dataLakes list --projectId 5e2211c17a3e5a48f5497de3 --output json
78+
# list all data federation databases:
79+
atlas dataFederation list
80+

0 commit comments

Comments
 (0)