@pulumi/mongodbatlas 3.17.0-alpha.1719556472 → 3.17.0-alpha.1719903114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/globalClusterConfig.d.ts +2 -40
- package/globalClusterConfig.js +2 -40
- package/globalClusterConfig.js.map +1 -1
- package/package.json +2 -2
package/globalClusterConfig.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ import * as outputs from "./types/output";
|
|
|
6
6
|
*
|
|
7
7
|
* > **NOTE:** Groups and projects are synonymous terms. You may find groupId in the official documentation.
|
|
8
8
|
*
|
|
9
|
+
* > **NOTE:** This resource can only be used with Atlas-managed clusters. See doc for `globalClusterSelfManagedSharding` attribute in `mongodbatlas.AdvancedCluster` resource for more info.
|
|
10
|
+
*
|
|
9
11
|
* > **IMPORTANT:** A Global Cluster Configuration, once created, can only be deleted. You can recreate the Global Cluster with the same data only in the Atlas UI. This is because the configuration and its related collection with shard key and indexes are managed separately and they would end up in an inconsistent state. [Read more about Global Cluster Configuration](https://www.mongodb.com/docs/atlas/global-clusters/)
|
|
10
12
|
*
|
|
11
13
|
* ## Examples Usage
|
|
@@ -63,46 +65,6 @@ import * as outputs from "./types/output";
|
|
|
63
65
|
* });
|
|
64
66
|
* ```
|
|
65
67
|
*
|
|
66
|
-
* ### Example Global cluster config
|
|
67
|
-
*
|
|
68
|
-
* ```typescript
|
|
69
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
70
|
-
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
71
|
-
*
|
|
72
|
-
* const cluster_test = new mongodbatlas.Cluster("cluster-test", {
|
|
73
|
-
* projectId: "<YOUR-PROJECT-ID>",
|
|
74
|
-
* name: "cluster-test",
|
|
75
|
-
* clusterType: "REPLICASET",
|
|
76
|
-
* replicationSpecs: [{
|
|
77
|
-
* numShards: 1,
|
|
78
|
-
* regionsConfigs: [{
|
|
79
|
-
* regionName: "US_EAST_1",
|
|
80
|
-
* electableNodes: 3,
|
|
81
|
-
* priority: 7,
|
|
82
|
-
* readOnlyNodes: 0,
|
|
83
|
-
* }],
|
|
84
|
-
* }],
|
|
85
|
-
* backupEnabled: true,
|
|
86
|
-
* autoScalingDiskGbEnabled: true,
|
|
87
|
-
* mongoDbMajorVersion: "7.0",
|
|
88
|
-
* providerName: "AWS",
|
|
89
|
-
* providerInstanceSizeName: "M40",
|
|
90
|
-
* });
|
|
91
|
-
* const config = new mongodbatlas.GlobalClusterConfig("config", {
|
|
92
|
-
* projectId: test.projectId,
|
|
93
|
-
* clusterName: test.name,
|
|
94
|
-
* managedNamespaces: [{
|
|
95
|
-
* db: "mydata",
|
|
96
|
-
* collection: "publishers",
|
|
97
|
-
* customShardKey: "city",
|
|
98
|
-
* }],
|
|
99
|
-
* customZoneMappings: [{
|
|
100
|
-
* location: "CA",
|
|
101
|
-
* zone: "Zone 1",
|
|
102
|
-
* }],
|
|
103
|
-
* });
|
|
104
|
-
* ```
|
|
105
|
-
*
|
|
106
68
|
* ## Import
|
|
107
69
|
*
|
|
108
70
|
* Global Clusters can be imported using project ID and cluster name, in the format `PROJECTID-CLUSTER_NAME`, e.g.
|
package/globalClusterConfig.js
CHANGED
|
@@ -10,6 +10,8 @@ const utilities = require("./utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* > **NOTE:** Groups and projects are synonymous terms. You may find groupId in the official documentation.
|
|
12
12
|
*
|
|
13
|
+
* > **NOTE:** This resource can only be used with Atlas-managed clusters. See doc for `globalClusterSelfManagedSharding` attribute in `mongodbatlas.AdvancedCluster` resource for more info.
|
|
14
|
+
*
|
|
13
15
|
* > **IMPORTANT:** A Global Cluster Configuration, once created, can only be deleted. You can recreate the Global Cluster with the same data only in the Atlas UI. This is because the configuration and its related collection with shard key and indexes are managed separately and they would end up in an inconsistent state. [Read more about Global Cluster Configuration](https://www.mongodb.com/docs/atlas/global-clusters/)
|
|
14
16
|
*
|
|
15
17
|
* ## Examples Usage
|
|
@@ -67,46 +69,6 @@ const utilities = require("./utilities");
|
|
|
67
69
|
* });
|
|
68
70
|
* ```
|
|
69
71
|
*
|
|
70
|
-
* ### Example Global cluster config
|
|
71
|
-
*
|
|
72
|
-
* ```typescript
|
|
73
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
74
|
-
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
75
|
-
*
|
|
76
|
-
* const cluster_test = new mongodbatlas.Cluster("cluster-test", {
|
|
77
|
-
* projectId: "<YOUR-PROJECT-ID>",
|
|
78
|
-
* name: "cluster-test",
|
|
79
|
-
* clusterType: "REPLICASET",
|
|
80
|
-
* replicationSpecs: [{
|
|
81
|
-
* numShards: 1,
|
|
82
|
-
* regionsConfigs: [{
|
|
83
|
-
* regionName: "US_EAST_1",
|
|
84
|
-
* electableNodes: 3,
|
|
85
|
-
* priority: 7,
|
|
86
|
-
* readOnlyNodes: 0,
|
|
87
|
-
* }],
|
|
88
|
-
* }],
|
|
89
|
-
* backupEnabled: true,
|
|
90
|
-
* autoScalingDiskGbEnabled: true,
|
|
91
|
-
* mongoDbMajorVersion: "7.0",
|
|
92
|
-
* providerName: "AWS",
|
|
93
|
-
* providerInstanceSizeName: "M40",
|
|
94
|
-
* });
|
|
95
|
-
* const config = new mongodbatlas.GlobalClusterConfig("config", {
|
|
96
|
-
* projectId: test.projectId,
|
|
97
|
-
* clusterName: test.name,
|
|
98
|
-
* managedNamespaces: [{
|
|
99
|
-
* db: "mydata",
|
|
100
|
-
* collection: "publishers",
|
|
101
|
-
* customShardKey: "city",
|
|
102
|
-
* }],
|
|
103
|
-
* customZoneMappings: [{
|
|
104
|
-
* location: "CA",
|
|
105
|
-
* zone: "Zone 1",
|
|
106
|
-
* }],
|
|
107
|
-
* });
|
|
108
|
-
* ```
|
|
109
|
-
*
|
|
110
72
|
* ## Import
|
|
111
73
|
*
|
|
112
74
|
* Global Clusters can be imported using project ID and cluster name, in the format `PROJECTID-CLUSTER_NAME`, e.g.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalClusterConfig.js","sourceRoot":"","sources":["../globalClusterConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"globalClusterConfig.js","sourceRoot":"","sources":["../globalClusterConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;IA+BD,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmD,CAAC;YAClE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,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CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAnFL,kDAoFC;AAtEG,gBAAgB;AACO,gCAAY,GAAG,4DAA4D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/mongodbatlas",
|
|
3
|
-
"version": "3.17.0-alpha.
|
|
3
|
+
"version": "3.17.0-alpha.1719903114",
|
|
4
4
|
"description": "A Pulumi package for creating and managing mongodbatlas cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "mongodbatlas",
|
|
26
|
-
"version": "3.17.0-alpha.
|
|
26
|
+
"version": "3.17.0-alpha.1719903114"
|
|
27
27
|
}
|
|
28
28
|
}
|