@pulumi/mongodbatlas 3.15.0-alpha.1713333524 → 3.15.0-alpha.1713461951
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/accessListApiKey.d.ts +4 -4
- package/accessListApiKey.js +4 -4
- package/advancedCluster.d.ts +28 -45
- package/advancedCluster.js +28 -45
- package/advancedCluster.js.map +1 -1
- package/alertConfiguration.d.ts +44 -44
- package/alertConfiguration.js +44 -44
- package/auditing.d.ts +2 -2
- package/auditing.js +2 -2
- package/backupCompliancePolicy.d.ts +85 -0
- package/backupCompliancePolicy.js +85 -0
- package/backupCompliancePolicy.js.map +1 -1
- package/cloudBackupSnapshot.d.ts +7 -7
- package/cloudBackupSnapshot.js +7 -7
- package/cloudBackupSnapshotExportBucket.d.ts +2 -2
- package/cloudBackupSnapshotExportBucket.js +2 -2
- package/cloudBackupSnapshotExportJob.d.ts +3 -3
- package/cloudBackupSnapshotExportJob.js +3 -3
- package/cloudBackupSnapshotRestoreJob.d.ts +78 -11
- package/cloudBackupSnapshotRestoreJob.js +78 -11
- package/cloudBackupSnapshotRestoreJob.js.map +1 -1
- package/cluster.d.ts +48 -64
- package/cluster.js +48 -64
- package/cluster.js.map +1 -1
- package/clusterOutageSimulation.d.ts +2 -2
- package/clusterOutageSimulation.js +2 -2
- package/customDbRole.d.ts +6 -6
- package/customDbRole.js +6 -6
- package/customDnsConfigurationClusterAws.d.ts +1 -1
- package/customDnsConfigurationClusterAws.js +1 -1
- package/databaseUser.d.ts +19 -19
- package/databaseUser.js +19 -19
- package/eventTrigger.d.ts +24 -20
- package/eventTrigger.js +24 -20
- package/eventTrigger.js.map +1 -1
- package/federatedDatabaseInstance.d.ts +10 -8
- package/federatedDatabaseInstance.js +10 -8
- package/federatedDatabaseInstance.js.map +1 -1
- package/federatedQueryLimit.d.ts +2 -2
- package/federatedQueryLimit.js +2 -2
- package/federatedSettingsIdentityProvider.d.ts +6 -5
- package/federatedSettingsIdentityProvider.js +6 -5
- package/federatedSettingsIdentityProvider.js.map +1 -1
- package/federatedSettingsOrgRoleMapping.d.ts +2 -2
- package/federatedSettingsOrgRoleMapping.js +2 -2
- package/get509AuthenticationDatabaseUser.d.ts +64 -0
- package/get509AuthenticationDatabaseUser.js +64 -0
- package/get509AuthenticationDatabaseUser.js.map +1 -1
- package/getAdvancedCluster.d.ts +60 -0
- package/getAdvancedCluster.js +60 -0
- package/getAdvancedCluster.js.map +1 -1
- package/getAlertConfiguration.d.ts +202 -0
- package/getAlertConfiguration.js +202 -0
- package/getAlertConfiguration.js.map +1 -1
- package/getAtlasUsers.d.ts +2 -2
- package/getAtlasUsers.js +2 -2
- package/getAuditing.d.ts +38 -0
- package/getAuditing.js +38 -0
- package/getAuditing.js.map +1 -1
- package/getBackupCompliancePolicy.d.ts +170 -0
- package/getBackupCompliancePolicy.js +170 -0
- package/getBackupCompliancePolicy.js.map +1 -1
- package/getCloudBackupSchedule.d.ts +58 -0
- package/getCloudBackupSchedule.js +58 -0
- package/getCloudBackupSchedule.js.map +1 -1
- package/getCloudBackupSnapshot.d.ts +42 -0
- package/getCloudBackupSnapshot.js +42 -0
- package/getCloudBackupSnapshot.js.map +1 -1
- package/getCloudBackupSnapshotExportBucket.d.ts +40 -0
- package/getCloudBackupSnapshotExportBucket.js +40 -0
- package/getCloudBackupSnapshotExportBucket.js.map +1 -1
- package/getCloudBackupSnapshotExportBuckets.d.ts +8 -8
- package/getCloudBackupSnapshotExportBuckets.js +8 -8
- package/getCloudBackupSnapshotExportJob.d.ts +62 -0
- package/getCloudBackupSnapshotExportJob.js +62 -0
- package/getCloudBackupSnapshotExportJob.js.map +1 -1
- package/getCloudBackupSnapshotExportJobs.d.ts +6 -6
- package/getCloudBackupSnapshotExportJobs.js +6 -6
- package/getCloudBackupSnapshotRestoreJobs.d.ts +6 -6
- package/getCloudBackupSnapshotRestoreJobs.js +6 -6
- package/getCloudProviderAccessSetup.d.ts +4 -4
- package/getCloudProviderAccessSetup.js +4 -4
- package/getCluster.d.ts +64 -0
- package/getCluster.js +64 -0
- package/getCluster.js.map +1 -1
- package/getClusterOutageSimulation.d.ts +2 -2
- package/getClusterOutageSimulation.js +2 -2
- package/getClusters.d.ts +6 -4
- package/getClusters.js +6 -4
- package/getClusters.js.map +1 -1
- package/getCustomDbRole.d.ts +2 -2
- package/getCustomDbRole.js +2 -2
- package/getCustomDnsConfigurationClusterAws.d.ts +34 -0
- package/getCustomDnsConfigurationClusterAws.js +34 -0
- package/getCustomDnsConfigurationClusterAws.js.map +1 -1
- package/getDatabaseUser.d.ts +132 -0
- package/getDatabaseUser.js +132 -0
- package/getDatabaseUser.js.map +1 -1
- package/getDatabaseUsers.d.ts +14 -14
- package/getDatabaseUsers.js +14 -14
- package/getFederatedDatabaseInstance.d.ts +6 -6
- package/getFederatedDatabaseInstance.js +6 -6
- package/getFederatedQueryLimit.d.ts +2 -2
- package/getFederatedQueryLimit.js +2 -2
- package/getFederatedSettingsIdentityProvider.d.ts +4 -2
- package/getFederatedSettingsIdentityProvider.js +4 -2
- package/getFederatedSettingsIdentityProvider.js.map +1 -1
- package/getFederatedSettingsIdentityProviders.d.ts +4 -2
- package/getFederatedSettingsIdentityProviders.js +4 -2
- package/getFederatedSettingsIdentityProviders.js.map +1 -1
- package/getFederatedSettingsOrgConfig.d.ts +6 -6
- package/getFederatedSettingsOrgConfig.js +6 -6
- package/getFederatedSettingsOrgConfigs.d.ts +6 -6
- package/getFederatedSettingsOrgConfigs.js +6 -6
- package/getFederatedSettingsOrgRoleMapping.d.ts +4 -4
- package/getFederatedSettingsOrgRoleMapping.js +4 -4
- package/getGlobalClusterConfig.d.ts +114 -0
- package/getGlobalClusterConfig.js +114 -0
- package/getGlobalClusterConfig.js.map +1 -1
- package/getLdapConfiguration.d.ts +50 -0
- package/getLdapConfiguration.js +50 -0
- package/getLdapConfiguration.js.map +1 -1
- package/getLdapVerify.d.ts +70 -0
- package/getLdapVerify.js +70 -0
- package/getLdapVerify.js.map +1 -1
- package/getMaintenanceWindow.d.ts +68 -0
- package/getMaintenanceWindow.js +68 -0
- package/getMaintenanceWindow.js.map +1 -1
- package/getNetworkContainer.d.ts +40 -0
- package/getNetworkContainer.js +40 -0
- package/getNetworkContainer.js.map +1 -1
- package/getNetworkContainers.d.ts +4 -4
- package/getNetworkContainers.js +4 -4
- package/getNetworkPeering.d.ts +46 -0
- package/getNetworkPeering.js +46 -0
- package/getNetworkPeering.js.map +1 -1
- package/getNetworkPeerings.d.ts +4 -4
- package/getNetworkPeerings.js +4 -4
- package/getOrganizations.d.ts +2 -2
- package/getOrganizations.js +2 -2
- package/getPrivateLinkEndpoint.d.ts +46 -0
- package/getPrivateLinkEndpoint.js +46 -0
- package/getPrivateLinkEndpoint.js.map +1 -1
- package/getPrivatelinkEndpointServiceDataFederationOnlineArchive.d.ts +8 -2
- package/getPrivatelinkEndpointServiceDataFederationOnlineArchive.js +8 -2
- package/getPrivatelinkEndpointServiceDataFederationOnlineArchive.js.map +1 -1
- package/getPrivatelinkEndpointServiceDataFederationOnlineArchives.d.ts +8 -2
- package/getPrivatelinkEndpointServiceDataFederationOnlineArchives.js +8 -2
- package/getPrivatelinkEndpointServiceDataFederationOnlineArchives.js.map +1 -1
- package/getPrivatelinkEndpointServiceServerless.d.ts +20 -16
- package/getPrivatelinkEndpointServiceServerless.js +20 -16
- package/getPrivatelinkEndpointServiceServerless.js.map +1 -1
- package/getPrivatelinkEndpointsServiceServerless.d.ts +20 -16
- package/getPrivatelinkEndpointsServiceServerless.js +20 -16
- package/getPrivatelinkEndpointsServiceServerless.js.map +1 -1
- package/getProject.d.ts +134 -0
- package/getProject.js +134 -0
- package/getProject.js.map +1 -1
- package/getProjectApiKey.d.ts +40 -0
- package/getProjectApiKey.js +40 -0
- package/getProjectApiKey.js.map +1 -1
- package/getProjectApiKeys.d.ts +2 -2
- package/getProjectApiKeys.js +2 -2
- package/getProjectInvitation.d.ts +38 -0
- package/getProjectInvitation.js +38 -0
- package/getProjectInvitation.js.map +1 -1
- package/getProjectIpAccessList.d.ts +146 -0
- package/getProjectIpAccessList.js +146 -0
- package/getProjectIpAccessList.js.map +1 -1
- package/getProjects.d.ts +10 -8
- package/getProjects.js +10 -8
- package/getProjects.js.map +1 -1
- package/getSearchIndex.d.ts +2 -2
- package/getSearchIndex.js +2 -2
- package/getThirdPartyIntegration.d.ts +2 -2
- package/getThirdPartyIntegration.js +2 -2
- package/getThirdPartyIntegrations.d.ts +4 -4
- package/getThirdPartyIntegrations.js +4 -4
- package/getX509AuthenticationDatabaseUser.d.ts +64 -0
- package/getX509AuthenticationDatabaseUser.js +64 -0
- package/getX509AuthenticationDatabaseUser.js.map +1 -1
- package/globalClusterConfig.d.ts +4 -2
- package/globalClusterConfig.js +4 -2
- package/globalClusterConfig.js.map +1 -1
- package/ldapConfiguration.d.ts +12 -6
- package/ldapConfiguration.js +12 -6
- package/ldapConfiguration.js.map +1 -1
- package/ldapVerify.d.ts +9 -6
- package/ldapVerify.js +9 -6
- package/ldapVerify.js.map +1 -1
- package/maintenanceWindow.d.ts +2 -2
- package/maintenanceWindow.js +2 -2
- package/networkContainer.d.ts +3 -3
- package/networkContainer.js +3 -3
- package/networkPeering.d.ts +38 -143
- package/networkPeering.js +38 -143
- package/networkPeering.js.map +1 -1
- package/onlineArchive.d.ts +8 -8
- package/onlineArchive.js +8 -8
- package/orgInvitation.d.ts +4 -4
- package/orgInvitation.js +4 -4
- package/organization.d.ts +2 -1
- package/organization.js +2 -1
- package/organization.js.map +1 -1
- package/package.json +1 -1
- package/privateLinkEndpointService.d.ts +95 -22
- package/privateLinkEndpointService.js +95 -22
- package/privateLinkEndpointService.js.map +1 -1
- package/privatelinkEndpointServerless.d.ts +3 -2
- package/privatelinkEndpointServerless.js +3 -2
- package/privatelinkEndpointServerless.js.map +1 -1
- package/privatelinkEndpointServiceDataFederationOnlineArchive.d.ts +4 -1
- package/privatelinkEndpointServiceDataFederationOnlineArchive.js +4 -1
- package/privatelinkEndpointServiceDataFederationOnlineArchive.js.map +1 -1
- package/privatelinkEndpointServiceServerless.d.ts +54 -6
- package/privatelinkEndpointServiceServerless.js +54 -6
- package/privatelinkEndpointServiceServerless.js.map +1 -1
- package/project.d.ts +4 -3
- package/project.js +4 -3
- package/project.js.map +1 -1
- package/projectInvitation.d.ts +2 -2
- package/projectInvitation.js +2 -2
- package/projectIpAccessList.d.ts +8 -8
- package/projectIpAccessList.js +8 -8
- package/searchIndex.d.ts +4 -2
- package/searchIndex.js +4 -2
- package/searchIndex.js.map +1 -1
- package/serverlessInstance.d.ts +1 -0
- package/serverlessInstance.js +1 -0
- package/serverlessInstance.js.map +1 -1
- package/thirdPartyIntegration.d.ts +3 -3
- package/thirdPartyIntegration.js +3 -3
package/networkPeering.d.ts
CHANGED
|
@@ -31,16 +31,16 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
31
31
|
*
|
|
32
32
|
* // Container example provided but not always required,
|
|
33
33
|
* // see network_container documentation for details.
|
|
34
|
-
* const
|
|
35
|
-
* projectId:
|
|
34
|
+
* const test = new mongodbatlas.NetworkContainer("test", {
|
|
35
|
+
* projectId: projectId,
|
|
36
36
|
* atlasCidrBlock: "10.8.0.0/21",
|
|
37
37
|
* providerName: "AWS",
|
|
38
38
|
* regionName: "US_EAST_1",
|
|
39
39
|
* });
|
|
40
40
|
* // Create the peering connection request
|
|
41
|
-
* const testNetworkPeering = new mongodbatlas.NetworkPeering("
|
|
41
|
+
* const testNetworkPeering = new mongodbatlas.NetworkPeering("test", {
|
|
42
42
|
* accepterRegionName: "us-east-1",
|
|
43
|
-
* projectId:
|
|
43
|
+
* projectId: projectId,
|
|
44
44
|
* containerId: "507f1f77bcf86cd799439011",
|
|
45
45
|
* providerName: "AWS",
|
|
46
46
|
* routeTableCidrBlock: "192.168.0.0/24",
|
|
@@ -49,75 +49,13 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
49
49
|
* });
|
|
50
50
|
* // the following assumes an AWS provider is configured
|
|
51
51
|
* // Accept the peering connection request
|
|
52
|
-
* const peer = new aws.
|
|
52
|
+
* const peer = new aws.index.VpcPeeringConnectionAccepter("peer", {
|
|
53
53
|
* vpcPeeringConnectionId: testNetworkPeering.connectionId,
|
|
54
54
|
* autoAccept: true,
|
|
55
55
|
* });
|
|
56
56
|
* ```
|
|
57
57
|
* <!--End PulumiCodeChooser -->
|
|
58
58
|
*
|
|
59
|
-
* ### Example with GCP
|
|
60
|
-
*
|
|
61
|
-
* <!--Start PulumiCodeChooser -->
|
|
62
|
-
* ```typescript
|
|
63
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
64
|
-
* import * as gcp from "@pulumi/gcp";
|
|
65
|
-
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
66
|
-
*
|
|
67
|
-
* // Container example provided but not always required,
|
|
68
|
-
* // see network_container documentation for details.
|
|
69
|
-
* const testNetworkContainer = new mongodbatlas.NetworkContainer("testNetworkContainer", {
|
|
70
|
-
* projectId: local.project_id,
|
|
71
|
-
* atlasCidrBlock: "10.8.0.0/21",
|
|
72
|
-
* providerName: "GCP",
|
|
73
|
-
* });
|
|
74
|
-
* // Create the peering connection request
|
|
75
|
-
* const testNetworkPeering = new mongodbatlas.NetworkPeering("testNetworkPeering", {
|
|
76
|
-
* projectId: local.project_id,
|
|
77
|
-
* containerId: testNetworkContainer.containerId,
|
|
78
|
-
* providerName: "GCP",
|
|
79
|
-
* gcpProjectId: local.GCP_PROJECT_ID,
|
|
80
|
-
* networkName: "default",
|
|
81
|
-
* });
|
|
82
|
-
* const default = gcp.compute.getNetwork({
|
|
83
|
-
* name: "default",
|
|
84
|
-
* });
|
|
85
|
-
* // Create the GCP peer
|
|
86
|
-
* const peering = new gcp.compute.NetworkPeering("peering", {
|
|
87
|
-
* network: _default.then(_default => _default.selfLink),
|
|
88
|
-
* peerNetwork: pulumi.interpolate`https://www.googleapis.com/compute/v1/projects/${testNetworkPeering.atlasGcpProjectId}/global/networks/${testNetworkPeering.atlasVpcName}`,
|
|
89
|
-
* });
|
|
90
|
-
* // Create the cluster once the peering connection is completed
|
|
91
|
-
* const testCluster = new mongodbatlas.Cluster("testCluster", {
|
|
92
|
-
* projectId: local.project_id,
|
|
93
|
-
* numShards: 1,
|
|
94
|
-
* clusterType: "REPLICASET",
|
|
95
|
-
* replicationSpecs: [{
|
|
96
|
-
* numShards: 1,
|
|
97
|
-
* regionsConfigs: [{
|
|
98
|
-
* regionName: "US_EAST_4",
|
|
99
|
-
* electableNodes: 3,
|
|
100
|
-
* priority: 7,
|
|
101
|
-
* readOnlyNodes: 0,
|
|
102
|
-
* }],
|
|
103
|
-
* }],
|
|
104
|
-
* autoScalingDiskGbEnabled: true,
|
|
105
|
-
* mongoDbMajorVersion: "4.2",
|
|
106
|
-
* providerName: "GCP",
|
|
107
|
-
* providerInstanceSizeName: "M10",
|
|
108
|
-
* }, {
|
|
109
|
-
* dependsOn: ["google_compute_network_peering.peering"],
|
|
110
|
-
* });
|
|
111
|
-
* // Private connection strings are not available w/ GCP until the reciprocal
|
|
112
|
-
* // connection changes to available (i.e. when the status attribute changes
|
|
113
|
-
* // to AVAILABLE on the 'mongodbatlas_network_peering' resource, which
|
|
114
|
-
* // happens when the google_compute_network_peering and and
|
|
115
|
-
* // mongodbatlas_network_peering make a reciprocal connection). Hence
|
|
116
|
-
* // since the cluster can be created before this connection completes
|
|
117
|
-
* // you may need to run `terraform refresh` to obtain the private connection strings.
|
|
118
|
-
* ```
|
|
119
|
-
* <!--End PulumiCodeChooser -->
|
|
120
|
-
*
|
|
121
59
|
* ### Example with Azure
|
|
122
60
|
*
|
|
123
61
|
* <!--Start PulumiCodeChooser -->
|
|
@@ -129,25 +67,26 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
129
67
|
* // see https://docs.atlas.mongodb.com/security-vpc-peering/
|
|
130
68
|
* // Container example provided but not always required,
|
|
131
69
|
* // see network_container documentation for details.
|
|
132
|
-
* const
|
|
133
|
-
* projectId:
|
|
134
|
-
* atlasCidrBlock:
|
|
70
|
+
* const test = new mongodbatlas.NetworkContainer("test", {
|
|
71
|
+
* projectId: projectId,
|
|
72
|
+
* atlasCidrBlock: ATLAS_CIDR_BLOCK,
|
|
135
73
|
* providerName: "AZURE",
|
|
136
74
|
* region: "US_EAST_2",
|
|
137
75
|
* });
|
|
138
76
|
* // Create the peering connection request
|
|
139
|
-
* const testNetworkPeering = new mongodbatlas.NetworkPeering("
|
|
140
|
-
* projectId:
|
|
141
|
-
* containerId:
|
|
77
|
+
* const testNetworkPeering = new mongodbatlas.NetworkPeering("test", {
|
|
78
|
+
* projectId: projectId,
|
|
79
|
+
* containerId: test.containerId,
|
|
142
80
|
* providerName: "AZURE",
|
|
143
|
-
* azureDirectoryId:
|
|
144
|
-
* azureSubscriptionId:
|
|
145
|
-
* resourceGroupName:
|
|
146
|
-
* vnetName:
|
|
81
|
+
* azureDirectoryId: AZURE_DIRECTORY_ID,
|
|
82
|
+
* azureSubscriptionId: AZURE_SUBSCRIPTION_ID,
|
|
83
|
+
* resourceGroupName: AZURE_RESOURCES_GROUP_NAME,
|
|
84
|
+
* vnetName: AZURE_VNET_NAME,
|
|
147
85
|
* });
|
|
148
86
|
* // Create the cluster once the peering connection is completed
|
|
149
|
-
* const testCluster = new mongodbatlas.Cluster("
|
|
150
|
-
* projectId:
|
|
87
|
+
* const testCluster = new mongodbatlas.Cluster("test", {
|
|
88
|
+
* projectId: projectId,
|
|
89
|
+
* name: "terraform-manually-test",
|
|
151
90
|
* clusterType: "REPLICASET",
|
|
152
91
|
* replicationSpecs: [{
|
|
153
92
|
* numShards: 1,
|
|
@@ -164,7 +103,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
164
103
|
* providerDiskTypeName: "P4",
|
|
165
104
|
* providerInstanceSizeName: "M10",
|
|
166
105
|
* }, {
|
|
167
|
-
* dependsOn: [
|
|
106
|
+
* dependsOn: [testNetworkPeering],
|
|
168
107
|
* });
|
|
169
108
|
* ```
|
|
170
109
|
* <!--End PulumiCodeChooser -->
|
|
@@ -182,7 +121,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
182
121
|
* // Create an Atlas cluster, this creates a container if one
|
|
183
122
|
* // does not yet exist for this AWS region
|
|
184
123
|
* const test = new mongodbatlas.Cluster("test", {
|
|
185
|
-
* projectId:
|
|
124
|
+
* projectId: projectId,
|
|
125
|
+
* name: "terraform-test",
|
|
186
126
|
* clusterType: "REPLICASET",
|
|
187
127
|
* replicationSpecs: [{
|
|
188
128
|
* numShards: 1,
|
|
@@ -199,76 +139,30 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
199
139
|
* providerInstanceSizeName: "M10",
|
|
200
140
|
* });
|
|
201
141
|
* // the following assumes an AWS provider is configured
|
|
202
|
-
* const _default = new aws.
|
|
203
|
-
*
|
|
142
|
+
* const _default = new aws.index.DefaultVpc("default", {tags: {
|
|
143
|
+
* name: "Default VPC",
|
|
204
144
|
* }});
|
|
205
145
|
* // Create the peering connection request
|
|
206
|
-
* const mongoPeer = new mongodbatlas.NetworkPeering("
|
|
146
|
+
* const mongoPeer = new mongodbatlas.NetworkPeering("mongo_peer", {
|
|
207
147
|
* accepterRegionName: "us-east-2",
|
|
208
|
-
* projectId:
|
|
148
|
+
* projectId: projectId,
|
|
209
149
|
* containerId: test.containerId,
|
|
210
150
|
* providerName: "AWS",
|
|
211
151
|
* routeTableCidrBlock: "172.31.0.0/16",
|
|
212
152
|
* vpcId: _default.id,
|
|
213
|
-
* awsAccountId:
|
|
153
|
+
* awsAccountId: AWS_ACCOUNT_ID,
|
|
214
154
|
* });
|
|
215
155
|
* // Accept the connection
|
|
216
|
-
* const awsPeer = new aws.
|
|
156
|
+
* const awsPeer = new aws.index.VpcPeeringConnectionAccepter("aws_peer", {
|
|
217
157
|
* vpcPeeringConnectionId: mongoPeer.connectionId,
|
|
218
158
|
* autoAccept: true,
|
|
219
159
|
* tags: {
|
|
220
|
-
*
|
|
160
|
+
* side: "Accepter",
|
|
221
161
|
* },
|
|
222
162
|
* });
|
|
223
163
|
* ```
|
|
224
164
|
* <!--End PulumiCodeChooser -->
|
|
225
165
|
*
|
|
226
|
-
* ### Example with GCP
|
|
227
|
-
* <!--Start PulumiCodeChooser -->
|
|
228
|
-
* ```typescript
|
|
229
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
230
|
-
* import * as gcp from "@pulumi/gcp";
|
|
231
|
-
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
232
|
-
*
|
|
233
|
-
* // Create an Atlas cluster, this creates a container if one
|
|
234
|
-
* // does not yet exist for this GCP
|
|
235
|
-
* const testCluster = new mongodbatlas.Cluster("testCluster", {
|
|
236
|
-
* projectId: local.project_id,
|
|
237
|
-
* clusterType: "REPLICASET",
|
|
238
|
-
* replicationSpecs: [{
|
|
239
|
-
* numShards: 1,
|
|
240
|
-
* regionsConfigs: [{
|
|
241
|
-
* regionName: "US_EAST_2",
|
|
242
|
-
* electableNodes: 3,
|
|
243
|
-
* priority: 7,
|
|
244
|
-
* readOnlyNodes: 0,
|
|
245
|
-
* }],
|
|
246
|
-
* }],
|
|
247
|
-
* autoScalingDiskGbEnabled: true,
|
|
248
|
-
* mongoDbMajorVersion: "4.2",
|
|
249
|
-
* providerName: "GCP",
|
|
250
|
-
* providerInstanceSizeName: "M10",
|
|
251
|
-
* });
|
|
252
|
-
* // Create the peering connection request
|
|
253
|
-
* const testNetworkPeering = new mongodbatlas.NetworkPeering("testNetworkPeering", {
|
|
254
|
-
* projectId: local.project_id,
|
|
255
|
-
* atlasCidrBlock: "192.168.0.0/18",
|
|
256
|
-
* containerId: testCluster.containerId,
|
|
257
|
-
* providerName: "GCP",
|
|
258
|
-
* gcpProjectId: local.GCP_PROJECT_ID,
|
|
259
|
-
* networkName: "default",
|
|
260
|
-
* });
|
|
261
|
-
* const default = gcp.compute.getNetwork({
|
|
262
|
-
* name: "default",
|
|
263
|
-
* });
|
|
264
|
-
* // Create the GCP peer
|
|
265
|
-
* const peering = new gcp.compute.NetworkPeering("peering", {
|
|
266
|
-
* network: _default.then(_default => _default.selfLink),
|
|
267
|
-
* peerNetwork: pulumi.interpolate`https://www.googleapis.com/compute/v1/projects/${testNetworkPeering.atlasGcpProjectId}/global/networks/${testNetworkPeering.atlasVpcName}`,
|
|
268
|
-
* });
|
|
269
|
-
* ```
|
|
270
|
-
* <!--End PulumiCodeChooser -->
|
|
271
|
-
*
|
|
272
166
|
* ### Example with Azure
|
|
273
167
|
*
|
|
274
168
|
* <!--Start PulumiCodeChooser -->
|
|
@@ -280,8 +174,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
280
174
|
* // see https://docs.atlas.mongodb.com/security-vpc-peering/
|
|
281
175
|
* // Create an Atlas cluster, this creates a container if one
|
|
282
176
|
* // does not yet exist for this AZURE region
|
|
283
|
-
* const
|
|
284
|
-
* projectId:
|
|
177
|
+
* const test = new mongodbatlas.Cluster("test", {
|
|
178
|
+
* projectId: projectId,
|
|
179
|
+
* name: "cluster-azure",
|
|
285
180
|
* clusterType: "REPLICASET",
|
|
286
181
|
* replicationSpecs: [{
|
|
287
182
|
* numShards: 1,
|
|
@@ -298,14 +193,14 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
298
193
|
* providerInstanceSizeName: "M10",
|
|
299
194
|
* });
|
|
300
195
|
* // Create the peering connection request
|
|
301
|
-
* const testNetworkPeering = new mongodbatlas.NetworkPeering("
|
|
302
|
-
* projectId:
|
|
303
|
-
* containerId:
|
|
196
|
+
* const testNetworkPeering = new mongodbatlas.NetworkPeering("test", {
|
|
197
|
+
* projectId: projectId,
|
|
198
|
+
* containerId: test.containerId,
|
|
304
199
|
* providerName: "AZURE",
|
|
305
|
-
* azureDirectoryId:
|
|
306
|
-
* azureSubscriptionId:
|
|
307
|
-
* resourceGroupName:
|
|
308
|
-
* vnetName:
|
|
200
|
+
* azureDirectoryId: AZURE_DIRECTORY_ID,
|
|
201
|
+
* azureSubscriptionId: AZURE_SUBSCRIPTION_ID,
|
|
202
|
+
* resourceGroupName: AZURE_RESOURCE_GROUP_NAME,
|
|
203
|
+
* vnetName: AZURE_VNET_NAME,
|
|
309
204
|
* });
|
|
310
205
|
* ```
|
|
311
206
|
* <!--End PulumiCodeChooser -->
|
package/networkPeering.js
CHANGED
|
@@ -37,16 +37,16 @@ const utilities = require("./utilities");
|
|
|
37
37
|
*
|
|
38
38
|
* // Container example provided but not always required,
|
|
39
39
|
* // see network_container documentation for details.
|
|
40
|
-
* const
|
|
41
|
-
* projectId:
|
|
40
|
+
* const test = new mongodbatlas.NetworkContainer("test", {
|
|
41
|
+
* projectId: projectId,
|
|
42
42
|
* atlasCidrBlock: "10.8.0.0/21",
|
|
43
43
|
* providerName: "AWS",
|
|
44
44
|
* regionName: "US_EAST_1",
|
|
45
45
|
* });
|
|
46
46
|
* // Create the peering connection request
|
|
47
|
-
* const testNetworkPeering = new mongodbatlas.NetworkPeering("
|
|
47
|
+
* const testNetworkPeering = new mongodbatlas.NetworkPeering("test", {
|
|
48
48
|
* accepterRegionName: "us-east-1",
|
|
49
|
-
* projectId:
|
|
49
|
+
* projectId: projectId,
|
|
50
50
|
* containerId: "507f1f77bcf86cd799439011",
|
|
51
51
|
* providerName: "AWS",
|
|
52
52
|
* routeTableCidrBlock: "192.168.0.0/24",
|
|
@@ -55,75 +55,13 @@ const utilities = require("./utilities");
|
|
|
55
55
|
* });
|
|
56
56
|
* // the following assumes an AWS provider is configured
|
|
57
57
|
* // Accept the peering connection request
|
|
58
|
-
* const peer = new aws.
|
|
58
|
+
* const peer = new aws.index.VpcPeeringConnectionAccepter("peer", {
|
|
59
59
|
* vpcPeeringConnectionId: testNetworkPeering.connectionId,
|
|
60
60
|
* autoAccept: true,
|
|
61
61
|
* });
|
|
62
62
|
* ```
|
|
63
63
|
* <!--End PulumiCodeChooser -->
|
|
64
64
|
*
|
|
65
|
-
* ### Example with GCP
|
|
66
|
-
*
|
|
67
|
-
* <!--Start PulumiCodeChooser -->
|
|
68
|
-
* ```typescript
|
|
69
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
70
|
-
* import * as gcp from "@pulumi/gcp";
|
|
71
|
-
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
72
|
-
*
|
|
73
|
-
* // Container example provided but not always required,
|
|
74
|
-
* // see network_container documentation for details.
|
|
75
|
-
* const testNetworkContainer = new mongodbatlas.NetworkContainer("testNetworkContainer", {
|
|
76
|
-
* projectId: local.project_id,
|
|
77
|
-
* atlasCidrBlock: "10.8.0.0/21",
|
|
78
|
-
* providerName: "GCP",
|
|
79
|
-
* });
|
|
80
|
-
* // Create the peering connection request
|
|
81
|
-
* const testNetworkPeering = new mongodbatlas.NetworkPeering("testNetworkPeering", {
|
|
82
|
-
* projectId: local.project_id,
|
|
83
|
-
* containerId: testNetworkContainer.containerId,
|
|
84
|
-
* providerName: "GCP",
|
|
85
|
-
* gcpProjectId: local.GCP_PROJECT_ID,
|
|
86
|
-
* networkName: "default",
|
|
87
|
-
* });
|
|
88
|
-
* const default = gcp.compute.getNetwork({
|
|
89
|
-
* name: "default",
|
|
90
|
-
* });
|
|
91
|
-
* // Create the GCP peer
|
|
92
|
-
* const peering = new gcp.compute.NetworkPeering("peering", {
|
|
93
|
-
* network: _default.then(_default => _default.selfLink),
|
|
94
|
-
* peerNetwork: pulumi.interpolate`https://www.googleapis.com/compute/v1/projects/${testNetworkPeering.atlasGcpProjectId}/global/networks/${testNetworkPeering.atlasVpcName}`,
|
|
95
|
-
* });
|
|
96
|
-
* // Create the cluster once the peering connection is completed
|
|
97
|
-
* const testCluster = new mongodbatlas.Cluster("testCluster", {
|
|
98
|
-
* projectId: local.project_id,
|
|
99
|
-
* numShards: 1,
|
|
100
|
-
* clusterType: "REPLICASET",
|
|
101
|
-
* replicationSpecs: [{
|
|
102
|
-
* numShards: 1,
|
|
103
|
-
* regionsConfigs: [{
|
|
104
|
-
* regionName: "US_EAST_4",
|
|
105
|
-
* electableNodes: 3,
|
|
106
|
-
* priority: 7,
|
|
107
|
-
* readOnlyNodes: 0,
|
|
108
|
-
* }],
|
|
109
|
-
* }],
|
|
110
|
-
* autoScalingDiskGbEnabled: true,
|
|
111
|
-
* mongoDbMajorVersion: "4.2",
|
|
112
|
-
* providerName: "GCP",
|
|
113
|
-
* providerInstanceSizeName: "M10",
|
|
114
|
-
* }, {
|
|
115
|
-
* dependsOn: ["google_compute_network_peering.peering"],
|
|
116
|
-
* });
|
|
117
|
-
* // Private connection strings are not available w/ GCP until the reciprocal
|
|
118
|
-
* // connection changes to available (i.e. when the status attribute changes
|
|
119
|
-
* // to AVAILABLE on the 'mongodbatlas_network_peering' resource, which
|
|
120
|
-
* // happens when the google_compute_network_peering and and
|
|
121
|
-
* // mongodbatlas_network_peering make a reciprocal connection). Hence
|
|
122
|
-
* // since the cluster can be created before this connection completes
|
|
123
|
-
* // you may need to run `terraform refresh` to obtain the private connection strings.
|
|
124
|
-
* ```
|
|
125
|
-
* <!--End PulumiCodeChooser -->
|
|
126
|
-
*
|
|
127
65
|
* ### Example with Azure
|
|
128
66
|
*
|
|
129
67
|
* <!--Start PulumiCodeChooser -->
|
|
@@ -135,25 +73,26 @@ const utilities = require("./utilities");
|
|
|
135
73
|
* // see https://docs.atlas.mongodb.com/security-vpc-peering/
|
|
136
74
|
* // Container example provided but not always required,
|
|
137
75
|
* // see network_container documentation for details.
|
|
138
|
-
* const
|
|
139
|
-
* projectId:
|
|
140
|
-
* atlasCidrBlock:
|
|
76
|
+
* const test = new mongodbatlas.NetworkContainer("test", {
|
|
77
|
+
* projectId: projectId,
|
|
78
|
+
* atlasCidrBlock: ATLAS_CIDR_BLOCK,
|
|
141
79
|
* providerName: "AZURE",
|
|
142
80
|
* region: "US_EAST_2",
|
|
143
81
|
* });
|
|
144
82
|
* // Create the peering connection request
|
|
145
|
-
* const testNetworkPeering = new mongodbatlas.NetworkPeering("
|
|
146
|
-
* projectId:
|
|
147
|
-
* containerId:
|
|
83
|
+
* const testNetworkPeering = new mongodbatlas.NetworkPeering("test", {
|
|
84
|
+
* projectId: projectId,
|
|
85
|
+
* containerId: test.containerId,
|
|
148
86
|
* providerName: "AZURE",
|
|
149
|
-
* azureDirectoryId:
|
|
150
|
-
* azureSubscriptionId:
|
|
151
|
-
* resourceGroupName:
|
|
152
|
-
* vnetName:
|
|
87
|
+
* azureDirectoryId: AZURE_DIRECTORY_ID,
|
|
88
|
+
* azureSubscriptionId: AZURE_SUBSCRIPTION_ID,
|
|
89
|
+
* resourceGroupName: AZURE_RESOURCES_GROUP_NAME,
|
|
90
|
+
* vnetName: AZURE_VNET_NAME,
|
|
153
91
|
* });
|
|
154
92
|
* // Create the cluster once the peering connection is completed
|
|
155
|
-
* const testCluster = new mongodbatlas.Cluster("
|
|
156
|
-
* projectId:
|
|
93
|
+
* const testCluster = new mongodbatlas.Cluster("test", {
|
|
94
|
+
* projectId: projectId,
|
|
95
|
+
* name: "terraform-manually-test",
|
|
157
96
|
* clusterType: "REPLICASET",
|
|
158
97
|
* replicationSpecs: [{
|
|
159
98
|
* numShards: 1,
|
|
@@ -170,7 +109,7 @@ const utilities = require("./utilities");
|
|
|
170
109
|
* providerDiskTypeName: "P4",
|
|
171
110
|
* providerInstanceSizeName: "M10",
|
|
172
111
|
* }, {
|
|
173
|
-
* dependsOn: [
|
|
112
|
+
* dependsOn: [testNetworkPeering],
|
|
174
113
|
* });
|
|
175
114
|
* ```
|
|
176
115
|
* <!--End PulumiCodeChooser -->
|
|
@@ -188,7 +127,8 @@ const utilities = require("./utilities");
|
|
|
188
127
|
* // Create an Atlas cluster, this creates a container if one
|
|
189
128
|
* // does not yet exist for this AWS region
|
|
190
129
|
* const test = new mongodbatlas.Cluster("test", {
|
|
191
|
-
* projectId:
|
|
130
|
+
* projectId: projectId,
|
|
131
|
+
* name: "terraform-test",
|
|
192
132
|
* clusterType: "REPLICASET",
|
|
193
133
|
* replicationSpecs: [{
|
|
194
134
|
* numShards: 1,
|
|
@@ -205,76 +145,30 @@ const utilities = require("./utilities");
|
|
|
205
145
|
* providerInstanceSizeName: "M10",
|
|
206
146
|
* });
|
|
207
147
|
* // the following assumes an AWS provider is configured
|
|
208
|
-
* const _default = new aws.
|
|
209
|
-
*
|
|
148
|
+
* const _default = new aws.index.DefaultVpc("default", {tags: {
|
|
149
|
+
* name: "Default VPC",
|
|
210
150
|
* }});
|
|
211
151
|
* // Create the peering connection request
|
|
212
|
-
* const mongoPeer = new mongodbatlas.NetworkPeering("
|
|
152
|
+
* const mongoPeer = new mongodbatlas.NetworkPeering("mongo_peer", {
|
|
213
153
|
* accepterRegionName: "us-east-2",
|
|
214
|
-
* projectId:
|
|
154
|
+
* projectId: projectId,
|
|
215
155
|
* containerId: test.containerId,
|
|
216
156
|
* providerName: "AWS",
|
|
217
157
|
* routeTableCidrBlock: "172.31.0.0/16",
|
|
218
158
|
* vpcId: _default.id,
|
|
219
|
-
* awsAccountId:
|
|
159
|
+
* awsAccountId: AWS_ACCOUNT_ID,
|
|
220
160
|
* });
|
|
221
161
|
* // Accept the connection
|
|
222
|
-
* const awsPeer = new aws.
|
|
162
|
+
* const awsPeer = new aws.index.VpcPeeringConnectionAccepter("aws_peer", {
|
|
223
163
|
* vpcPeeringConnectionId: mongoPeer.connectionId,
|
|
224
164
|
* autoAccept: true,
|
|
225
165
|
* tags: {
|
|
226
|
-
*
|
|
166
|
+
* side: "Accepter",
|
|
227
167
|
* },
|
|
228
168
|
* });
|
|
229
169
|
* ```
|
|
230
170
|
* <!--End PulumiCodeChooser -->
|
|
231
171
|
*
|
|
232
|
-
* ### Example with GCP
|
|
233
|
-
* <!--Start PulumiCodeChooser -->
|
|
234
|
-
* ```typescript
|
|
235
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
236
|
-
* import * as gcp from "@pulumi/gcp";
|
|
237
|
-
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
238
|
-
*
|
|
239
|
-
* // Create an Atlas cluster, this creates a container if one
|
|
240
|
-
* // does not yet exist for this GCP
|
|
241
|
-
* const testCluster = new mongodbatlas.Cluster("testCluster", {
|
|
242
|
-
* projectId: local.project_id,
|
|
243
|
-
* clusterType: "REPLICASET",
|
|
244
|
-
* replicationSpecs: [{
|
|
245
|
-
* numShards: 1,
|
|
246
|
-
* regionsConfigs: [{
|
|
247
|
-
* regionName: "US_EAST_2",
|
|
248
|
-
* electableNodes: 3,
|
|
249
|
-
* priority: 7,
|
|
250
|
-
* readOnlyNodes: 0,
|
|
251
|
-
* }],
|
|
252
|
-
* }],
|
|
253
|
-
* autoScalingDiskGbEnabled: true,
|
|
254
|
-
* mongoDbMajorVersion: "4.2",
|
|
255
|
-
* providerName: "GCP",
|
|
256
|
-
* providerInstanceSizeName: "M10",
|
|
257
|
-
* });
|
|
258
|
-
* // Create the peering connection request
|
|
259
|
-
* const testNetworkPeering = new mongodbatlas.NetworkPeering("testNetworkPeering", {
|
|
260
|
-
* projectId: local.project_id,
|
|
261
|
-
* atlasCidrBlock: "192.168.0.0/18",
|
|
262
|
-
* containerId: testCluster.containerId,
|
|
263
|
-
* providerName: "GCP",
|
|
264
|
-
* gcpProjectId: local.GCP_PROJECT_ID,
|
|
265
|
-
* networkName: "default",
|
|
266
|
-
* });
|
|
267
|
-
* const default = gcp.compute.getNetwork({
|
|
268
|
-
* name: "default",
|
|
269
|
-
* });
|
|
270
|
-
* // Create the GCP peer
|
|
271
|
-
* const peering = new gcp.compute.NetworkPeering("peering", {
|
|
272
|
-
* network: _default.then(_default => _default.selfLink),
|
|
273
|
-
* peerNetwork: pulumi.interpolate`https://www.googleapis.com/compute/v1/projects/${testNetworkPeering.atlasGcpProjectId}/global/networks/${testNetworkPeering.atlasVpcName}`,
|
|
274
|
-
* });
|
|
275
|
-
* ```
|
|
276
|
-
* <!--End PulumiCodeChooser -->
|
|
277
|
-
*
|
|
278
172
|
* ### Example with Azure
|
|
279
173
|
*
|
|
280
174
|
* <!--Start PulumiCodeChooser -->
|
|
@@ -286,8 +180,9 @@ const utilities = require("./utilities");
|
|
|
286
180
|
* // see https://docs.atlas.mongodb.com/security-vpc-peering/
|
|
287
181
|
* // Create an Atlas cluster, this creates a container if one
|
|
288
182
|
* // does not yet exist for this AZURE region
|
|
289
|
-
* const
|
|
290
|
-
* projectId:
|
|
183
|
+
* const test = new mongodbatlas.Cluster("test", {
|
|
184
|
+
* projectId: projectId,
|
|
185
|
+
* name: "cluster-azure",
|
|
291
186
|
* clusterType: "REPLICASET",
|
|
292
187
|
* replicationSpecs: [{
|
|
293
188
|
* numShards: 1,
|
|
@@ -304,14 +199,14 @@ const utilities = require("./utilities");
|
|
|
304
199
|
* providerInstanceSizeName: "M10",
|
|
305
200
|
* });
|
|
306
201
|
* // Create the peering connection request
|
|
307
|
-
* const testNetworkPeering = new mongodbatlas.NetworkPeering("
|
|
308
|
-
* projectId:
|
|
309
|
-
* containerId:
|
|
202
|
+
* const testNetworkPeering = new mongodbatlas.NetworkPeering("test", {
|
|
203
|
+
* projectId: projectId,
|
|
204
|
+
* containerId: test.containerId,
|
|
310
205
|
* providerName: "AZURE",
|
|
311
|
-
* azureDirectoryId:
|
|
312
|
-
* azureSubscriptionId:
|
|
313
|
-
* resourceGroupName:
|
|
314
|
-
* vnetName:
|
|
206
|
+
* azureDirectoryId: AZURE_DIRECTORY_ID,
|
|
207
|
+
* azureSubscriptionId: AZURE_SUBSCRIPTION_ID,
|
|
208
|
+
* resourceGroupName: AZURE_RESOURCE_GROUP_NAME,
|
|
209
|
+
* vnetName: AZURE_VNET_NAME,
|
|
315
210
|
* });
|
|
316
211
|
* ```
|
|
317
212
|
* <!--End PulumiCodeChooser -->
|
package/networkPeering.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"networkPeering.js","sourceRoot":"","sources":["../networkPeering.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"networkPeering.js","sourceRoot":"","sources":["../networkPeering.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC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,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AArML,wCAsMC;AAxLG,gBAAgB;AACO,2BAAY,GAAG,kDAAkD,CAAC"}
|
package/onlineArchive.d.ts
CHANGED
|
@@ -19,10 +19,10 @@ import * as outputs from "./types/output";
|
|
|
19
19
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
20
20
|
*
|
|
21
21
|
* const test = new mongodbatlas.OnlineArchive("test", {
|
|
22
|
-
* projectId:
|
|
23
|
-
* clusterName:
|
|
24
|
-
* collName:
|
|
25
|
-
* dbName:
|
|
22
|
+
* projectId: projectId,
|
|
23
|
+
* clusterName: clusterName,
|
|
24
|
+
* collName: collectionName,
|
|
25
|
+
* dbName: databaseName,
|
|
26
26
|
* partitionFields: [
|
|
27
27
|
* {
|
|
28
28
|
* fieldName: "dateField",
|
|
@@ -61,10 +61,10 @@ import * as outputs from "./types/output";
|
|
|
61
61
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
62
62
|
*
|
|
63
63
|
* const test = new mongodbatlas.OnlineArchive("test", {
|
|
64
|
-
* projectId:
|
|
65
|
-
* clusterName:
|
|
66
|
-
* collName:
|
|
67
|
-
* dbName:
|
|
64
|
+
* projectId: projectId,
|
|
65
|
+
* clusterName: clusterName,
|
|
66
|
+
* collName: collectionName,
|
|
67
|
+
* dbName: databaseName,
|
|
68
68
|
* partitionFields: [
|
|
69
69
|
* {
|
|
70
70
|
* fieldName: "firstName",
|
package/onlineArchive.js
CHANGED
|
@@ -23,10 +23,10 @@ const utilities = require("./utilities");
|
|
|
23
23
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
24
24
|
*
|
|
25
25
|
* const test = new mongodbatlas.OnlineArchive("test", {
|
|
26
|
-
* projectId:
|
|
27
|
-
* clusterName:
|
|
28
|
-
* collName:
|
|
29
|
-
* dbName:
|
|
26
|
+
* projectId: projectId,
|
|
27
|
+
* clusterName: clusterName,
|
|
28
|
+
* collName: collectionName,
|
|
29
|
+
* dbName: databaseName,
|
|
30
30
|
* partitionFields: [
|
|
31
31
|
* {
|
|
32
32
|
* fieldName: "dateField",
|
|
@@ -65,10 +65,10 @@ const utilities = require("./utilities");
|
|
|
65
65
|
* import * as mongodbatlas from "@pulumi/mongodbatlas";
|
|
66
66
|
*
|
|
67
67
|
* const test = new mongodbatlas.OnlineArchive("test", {
|
|
68
|
-
* projectId:
|
|
69
|
-
* clusterName:
|
|
70
|
-
* collName:
|
|
71
|
-
* dbName:
|
|
68
|
+
* projectId: projectId,
|
|
69
|
+
* clusterName: clusterName,
|
|
70
|
+
* collName: collectionName,
|
|
71
|
+
* dbName: databaseName,
|
|
72
72
|
* partitionFields: [
|
|
73
73
|
* {
|
|
74
74
|
* fieldName: "firstName",
|