Skip to content

Commit da130dc

Browse files
martinstibbedependabot[bot]evertsdZuhairahmed
authored
INTMDB-488: Analytics node tier new features (#994)
* Chore(deps): Bump github.com/gruntwork-io/terratest (#978) Bumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.41.6 to 0.41.7. - [Release notes](https://github.com/gruntwork-io/terratest/releases) - [Commits](gruntwork-io/terratest@v0.41.6...v0.41.7) --- updated-dependencies: - dependency-name: github.com/gruntwork-io/terratest dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Chore(deps): Bump actions/stale from 6 to 7 (#977) Bumps [actions/stale](https://github.com/actions/stale) from 6 to 7. - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](actions/stale@v6...v7) --- updated-dependencies: - dependency-name: actions/stale dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * v1.7.0 Pre-Release (#980) * Delete mongodbatlas.erb (#962) * INTMDB-523: Rename exportJobID to exportID to match go client (#976) * Updated version of atlas api client used, renamed bucketID to exportJobID * Reverted changes to bucketID and updated exportJobID to exportID * INTMDB-521: AWS Secrets Manager to Auth into Terraform Atlas Provider (#975) * Add support for assume_role * Add documentation for assume_role feature * Add AWS parameters Env vars * Update index.html.markdown * Doc clean up * typo * Add regional behavior to endpoint sts client * Add sts_endpoint parameter * Update website/docs/index.html.markdown * formatting * formatting2 * Removed commented code Co-authored-by: Zuhair Ahmed <[email protected]> * Update .github_changelog_generator Co-authored-by: Dosty Everts <[email protected]> Co-authored-by: Zuhair Ahmed <[email protected]> * Revert "v1.7.0 Pre-Release (#980)" (#982) This reverts commit 7a57d21. * V1.7.0 staging (#984) * Delete mongodbatlas.erb (#962) * INTMDB-523: Rename exportJobID to exportID to match go client (#976) * Updated version of atlas api client used, renamed bucketID to exportJobID * Reverted changes to bucketID and updated exportJobID to exportID * INTMDB-521: AWS Secrets Manager to Auth into Terraform Atlas Provider (#975) * Add support for assume_role * Add documentation for assume_role feature * Add AWS parameters Env vars * Update index.html.markdown * Doc clean up * typo * Add regional behavior to endpoint sts client * Add sts_endpoint parameter * Update website/docs/index.html.markdown * formatting * formatting2 * Removed commented code Co-authored-by: Zuhair Ahmed <[email protected]> * Update .github_changelog_generator * Update CHANGELOG.md * Changelog Cleanup * 1.7.0 Upgrade and Information Guide Co-authored-by: Dosty Everts <[email protected]> Co-authored-by: Zuhair Ahmed <[email protected]> * AWS_SM_Doc_Adds (#986) * Adding Instructions to dev versions of provider (#987) * doc formatting edits (#990) * doc formatting (#991) * Initial analytics scaling * Add Documentation updates for analytics_auto_scaling * Update advanced_cluster.html.markdown * Add testing for analytics scaling * example fix * log to file add * formating * formatting updates * Add mutex to custom db role API call to avoid overlapping API calls * Add back test mutex fixed API concurrency issue * Rollback 448 changes pushed to incorrect branch Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dosty Everts <[email protected]> Co-authored-by: Zuhair Ahmed <[email protected]>
1 parent 1acd734 commit da130dc

9 files changed

+226
-5
lines changed

mongodbatlas/data_source_mongodbatlas_advanced_cluster.go

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,34 @@ func dataSourceMongoDBAtlasAdvancedCluster() *schema.Resource {
141141
},
142142
},
143143
},
144+
"analytics_auto_scaling": {
145+
Type: schema.TypeList,
146+
Computed: true,
147+
Elem: &schema.Resource{
148+
Schema: map[string]*schema.Schema{
149+
"disk_gb_enabled": {
150+
Type: schema.TypeBool,
151+
Computed: true,
152+
},
153+
"compute_enabled": {
154+
Type: schema.TypeBool,
155+
Computed: true,
156+
},
157+
"compute_scale_down_enabled": {
158+
Type: schema.TypeBool,
159+
Computed: true,
160+
},
161+
"compute_min_instance_size": {
162+
Type: schema.TypeString,
163+
Computed: true,
164+
},
165+
"compute_max_instance_size": {
166+
Type: schema.TypeString,
167+
Computed: true,
168+
},
169+
},
170+
},
171+
},
144172
"backing_provider_name": {
145173
Type: schema.TypeString,
146174
Computed: true,

mongodbatlas/data_source_mongodbatlas_advanced_clusters.go

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,34 @@ func dataSourceMongoDBAtlasAdvancedClusters() *schema.Resource {
149149
},
150150
},
151151
},
152+
"analytics_auto_scaling": {
153+
Type: schema.TypeList,
154+
Computed: true,
155+
Elem: &schema.Resource{
156+
Schema: map[string]*schema.Schema{
157+
"disk_gb_enabled": {
158+
Type: schema.TypeBool,
159+
Computed: true,
160+
},
161+
"compute_enabled": {
162+
Type: schema.TypeBool,
163+
Computed: true,
164+
},
165+
"compute_scale_down_enabled": {
166+
Type: schema.TypeBool,
167+
Computed: true,
168+
},
169+
"compute_min_instance_size": {
170+
Type: schema.TypeString,
171+
Computed: true,
172+
},
173+
"compute_max_instance_size": {
174+
Type: schema.TypeString,
175+
Computed: true,
176+
},
177+
},
178+
},
179+
},
152180
"backing_provider_name": {
153181
Type: schema.TypeString,
154182
Computed: true,

mongodbatlas/resource_mongodbatlas_advanced_cluster.go

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,41 @@ func resourceMongoDBAtlasAdvancedCluster() *schema.Resource {
237237
},
238238
},
239239
},
240+
"analytics_auto_scaling": {
241+
Type: schema.TypeList,
242+
MaxItems: 1,
243+
Optional: true,
244+
Computed: true,
245+
Elem: &schema.Resource{
246+
Schema: map[string]*schema.Schema{
247+
"disk_gb_enabled": {
248+
Type: schema.TypeBool,
249+
Optional: true,
250+
Computed: true,
251+
},
252+
"compute_enabled": {
253+
Type: schema.TypeBool,
254+
Optional: true,
255+
Computed: true,
256+
},
257+
"compute_scale_down_enabled": {
258+
Type: schema.TypeBool,
259+
Optional: true,
260+
Computed: true,
261+
},
262+
"compute_min_instance_size": {
263+
Type: schema.TypeString,
264+
Optional: true,
265+
Computed: true,
266+
},
267+
"compute_max_instance_size": {
268+
Type: schema.TypeString,
269+
Optional: true,
270+
Computed: true,
271+
},
272+
},
273+
},
274+
},
240275
"backing_provider_name": {
241276
Type: schema.TypeString,
242277
Optional: true,
@@ -871,6 +906,9 @@ func expandRegionConfig(tfMap map[string]interface{}) *matlas.AdvancedRegionConf
871906
if v, ok := tfMap["auto_scaling"]; ok && len(v.([]interface{})) > 0 {
872907
apiObject.AutoScaling = expandRegionConfigAutoScaling(v.([]interface{}))
873908
}
909+
if v, ok := tfMap["analytics_auto_scaling"]; ok && len(v.([]interface{})) > 0 {
910+
apiObject.AnalyticsAutoScaling = expandRegionConfigAutoScaling(v.([]interface{}))
911+
}
874912
if v, ok := tfMap["backing_provider_name"]; ok {
875913
apiObject.BackingProviderName = v.(string)
876914
}
@@ -1037,11 +1075,15 @@ func flattenAdvancedReplicationSpecRegionConfig(apiObject *matlas.AdvancedRegion
10371075
if v, ok := tfMapObject["auto_scaling"]; ok && len(v.([]interface{})) > 0 {
10381076
tfMap["auto_scaling"] = flattenAdvancedReplicationSpecAutoScaling(apiObject.AutoScaling)
10391077
}
1078+
if v, ok := tfMapObject["analytics_auto_scaling"]; ok && len(v.([]interface{})) > 0 {
1079+
tfMap["analytics_auto_scaling"] = flattenAdvancedReplicationSpecAutoScaling(apiObject.AnalyticsAutoScaling)
1080+
}
10401081
} else {
10411082
tfMap["analytics_specs"] = flattenAdvancedReplicationSpecRegionConfigSpec(apiObject.AnalyticsSpecs, apiObject.ProviderName, nil)
10421083
tfMap["electable_specs"] = flattenAdvancedReplicationSpecRegionConfigSpec(apiObject.ElectableSpecs, apiObject.ProviderName, nil)
10431084
tfMap["read_only_specs"] = flattenAdvancedReplicationSpecRegionConfigSpec(apiObject.ReadOnlySpecs, apiObject.ProviderName, nil)
10441085
tfMap["auto_scaling"] = flattenAdvancedReplicationSpecAutoScaling(apiObject.AutoScaling)
1086+
tfMap["analytics_auto_scaling"] = flattenAdvancedReplicationSpecAutoScaling(apiObject.AnalyticsAutoScaling)
10451087
}
10461088

10471089
tfMap["region_name"] = apiObject.RegionName

mongodbatlas/resource_mongodbatlas_advanced_cluster_test.go

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,50 @@ func TestAccClusterRSAdvancedClusterConfig_ReplicationSpecsAutoScaling(t *testin
433433
})
434434
}
435435

436+
func TestAccClusterRSAdvancedClusterConfig_ReplicationSpecsAnalyticsAutoScaling(t *testing.T) {
437+
var (
438+
cluster matlas.AdvancedCluster
439+
resourceName = "mongodbatlas_advanced_cluster.test"
440+
projectID = os.Getenv("MONGODB_ATLAS_PROJECT_ID")
441+
rName = acctest.RandomWithPrefix("test-acc")
442+
rNameUpdated = acctest.RandomWithPrefix("test-acc")
443+
autoScaling = &matlas.AutoScaling{
444+
Compute: &matlas.Compute{Enabled: pointy.Bool(false), MaxInstanceSize: ""},
445+
DiskGBEnabled: pointy.Bool(true),
446+
}
447+
autoScalingUpdated = &matlas.AutoScaling{
448+
Compute: &matlas.Compute{Enabled: pointy.Bool(true), MaxInstanceSize: "M20"},
449+
DiskGBEnabled: pointy.Bool(true),
450+
}
451+
)
452+
453+
resource.ParallelTest(t, resource.TestCase{
454+
PreCheck: func() { testAccPreCheck(t) },
455+
ProviderFactories: testAccProviderFactories,
456+
CheckDestroy: testAccCheckMongoDBAtlasAdvancedClusterDestroy,
457+
Steps: []resource.TestStep{
458+
{
459+
Config: testAccMongoDBAtlasAdvancedClusterConfigReplicationSpecsAnalyticsAutoScaling(projectID, rName, autoScaling),
460+
Check: resource.ComposeTestCheckFunc(
461+
testAccCheckMongoDBAtlasAdvancedClusterExists(resourceName, &cluster),
462+
testAccCheckMongoDBAtlasAdvancedClusterAttributes(&cluster, rName),
463+
resource.TestCheckResourceAttrSet(resourceName, "replication_specs.0.region_configs.#"),
464+
testAccCheckMongoDBAtlasAdvancedClusterAnalyticsScaling(&cluster, *autoScaling.Compute.Enabled),
465+
),
466+
},
467+
{
468+
Config: testAccMongoDBAtlasAdvancedClusterConfigReplicationSpecsAnalyticsAutoScaling(projectID, rNameUpdated, autoScalingUpdated),
469+
Check: resource.ComposeTestCheckFunc(
470+
testAccCheckMongoDBAtlasAdvancedClusterExists(resourceName, &cluster),
471+
testAccCheckMongoDBAtlasAdvancedClusterAttributes(&cluster, rNameUpdated),
472+
resource.TestCheckResourceAttrSet(resourceName, "replication_specs.0.region_configs.#"),
473+
testAccCheckMongoDBAtlasAdvancedClusterAnalyticsScaling(&cluster, *autoScalingUpdated.Compute.Enabled),
474+
),
475+
},
476+
},
477+
})
478+
}
479+
436480
func testAccCheckMongoDBAtlasAdvancedClusterExists(resourceName string, cluster *matlas.AdvancedCluster) resource.TestCheckFunc {
437481
return func(s *terraform.State) error {
438482
conn := testAccProvider.Meta().(*MongoDBClient).Atlas
@@ -479,6 +523,16 @@ func testAccCheckMongoDBAtlasAdvancedClusterScaling(cluster *matlas.AdvancedClus
479523
}
480524
}
481525

526+
func testAccCheckMongoDBAtlasAdvancedClusterAnalyticsScaling(cluster *matlas.AdvancedCluster, computeEnabled bool) resource.TestCheckFunc {
527+
return func(s *terraform.State) error {
528+
if *cluster.ReplicationSpecs[0].RegionConfigs[0].AnalyticsAutoScaling.Compute.Enabled != computeEnabled {
529+
return fmt.Errorf("compute_enabled: %d", cluster.ReplicationSpecs[0].RegionConfigs[0].AnalyticsAutoScaling.Compute.Enabled)
530+
}
531+
532+
return nil
533+
}
534+
}
535+
482536
func testAccCheckMongoDBAtlasAdvancedClusterDestroy(s *terraform.State) error {
483537
conn := testAccProvider.Meta().(*MongoDBClient).Atlas
484538

@@ -755,3 +809,37 @@ resource "mongodbatlas_advanced_cluster" "test" {
755809
756810
`, projectID, name, *p.Compute.Enabled, *p.DiskGBEnabled, p.Compute.MaxInstanceSize)
757811
}
812+
813+
func testAccMongoDBAtlasAdvancedClusterConfigReplicationSpecsAnalyticsAutoScaling(projectID, name string, p *matlas.AutoScaling) string {
814+
return fmt.Sprintf(`
815+
resource "mongodbatlas_advanced_cluster" "test" {
816+
project_id = %[1]q
817+
name = %[2]q
818+
cluster_type = "REPLICASET"
819+
820+
replication_specs {
821+
region_configs {
822+
electable_specs {
823+
instance_size = "M10"
824+
node_count = 3
825+
}
826+
analytics_specs {
827+
instance_size = "M10"
828+
node_count = 1
829+
}
830+
analytics_auto_scaling {
831+
compute_enabled = %[3]t
832+
disk_gb_enabled = %[4]t
833+
compute_max_instance_size = %[5]q
834+
}
835+
provider_name = "AWS"
836+
priority = 7
837+
region_name = "US_EAST_1"
838+
}
839+
}
840+
841+
842+
}
843+
844+
`, projectID, name, *p.Compute.Enabled, *p.DiskGBEnabled, p.Compute.MaxInstanceSize)
845+
}

website/docs/d/advanced_cluster.html.markdown

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ Key-value pairs that tag and categorize the cluster. Each key and value has a ma
9494

9595
* `analytics_specs` - Hardware specifications for [analytics nodes](https://docs.atlas.mongodb.com/reference/faq/deployment/#std-label-analytics-nodes-overview) needed in the region. See [below](#specs)
9696
* `auto_scaling` - Configuration for the Collection of settings that configures auto-scaling information for the cluster. See [below](#auto_scaling)
97+
* `analytics_auto_scaling` - Configuration for the Collection of settings that configures analytics-auto-scaling information for the cluster. See [below](#analytics_auto_scaling)
9798
* `backing_provider_name` - Cloud service provider on which you provision the host for a multi-tenant cluster.
9899
* `electable_specs` - Hardware specifications for electable nodes in the region.
99100
* `priority` - Election priority of the region.
@@ -118,6 +119,13 @@ Key-value pairs that tag and categorize the cluster. Each key and value has a ma
118119
* `compute_min_instance_size` - Minimum instance size to which your cluster can automatically scale (such as M10).
119120
* `compute_max_instance_size` - Maximum instance size to which your cluster can automatically scale (such as M40).
120121

122+
### analytics_auto_scaling
123+
124+
* `disk_gb_enabled` - Flag that indicates whether this cluster enables disk auto-scaling.
125+
* `compute_enabled` - Flag that indicates whether instance size auto-scaling is enabled.
126+
* `compute_scale_down_enabled` - Flag that indicates whether the instance size may scale down.
127+
* `compute_min_instance_size` - Minimum instance size to which your cluster can automatically scale (such as M10).
128+
* `compute_max_instance_size` - Maximum instance size to which your cluster can automatically scale (such as M40).
121129
#### Advanced Configuration
122130

123131
* `default_read_concern` - [Default level of acknowledgment requested from MongoDB for read operations](https://docs.mongodb.com/manual/reference/read-concern/) set for this cluster. MongoDB 4.4 clusters default to [available](https://docs.mongodb.com/manual/reference/read-concern-available/).
@@ -159,7 +167,7 @@ In addition to all arguments above, the following attributes are exported:
159167
- `connection_strings.private_endpoint.#.srv_connection_string` - Private-endpoint-aware `mongodb+srv://` connection string for this private endpoint. The `mongodb+srv` protocol tells the driver to look up the seed list of hosts in DNS . Atlas synchronizes this list with the nodes in a cluster. If the connection string uses this URI format, you don't need to: Append the seed list or Change the URI if the nodes change. Use this URI format if your driver supports it. If it doesn't, use `connection_strings.private_endpoint[n].connection_string`
160168
- `connection_strings.private_endpoint.#.type` - Type of MongoDB process that you connect to with the connection strings. Atlas returns `MONGOD` for replica sets, or `MONGOS` for sharded clusters.
161169
- `connection_strings.private_endpoint.#.endpoints` - Private endpoint through which you connect to Atlas when you use `connection_strings.private_endpoint[n].connection_string` or `connection_strings.private_endpoint[n].srv_connection_string`
162-
- `connection_strings.private_endoint.#.endpoints.#.endpoint_id` - Unique identifier of the private endpoint.
170+
- `connection_strings.private_endpoint.#.endpoints.#.endpoint_id` - Unique identifier of the private endpoint.
163171
- `connection_strings.private_endpoint.#.endpoints.#.provider_name` - Cloud provider to which you deployed the private endpoint. Atlas returns `AWS` or `AZURE`.
164172
- `connection_strings.private_endpoint.#.endpoints.#.region` - Region to which you deployed the private endpoint.
165173
* `paused` - Flag that indicates whether the cluster is paused or not.

website/docs/d/advanced_clusters.html.markdown

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ Key-value pairs that tag and categorize the cluster. Each key and value has a ma
9696

9797
* `analytics_specs` - Hardware specifications for [analytics nodes](https://docs.atlas.mongodb.com/reference/faq/deployment/#std-label-analytics-nodes-overview) needed in the region. See [below](#specs)
9898
* `auto_scaling` - Configuration for the Collection of settings that configures auto-scaling information for the cluster. See [below](#auto_scaling)
99+
* `analytics_auto_scaling` - Configuration for the Collection of settings that configures analytis-auto-scaling information for the cluster. See [below](#analytics_auto_scaling)
99100
* `backing_provider_name` - Cloud service provider on which you provision the host for a multi-tenant cluster.
100101
* `electable_specs` - Hardware specifications for electable nodes in the region.
101102
* `priority` - Election priority of the region.
@@ -120,6 +121,14 @@ Key-value pairs that tag and categorize the cluster. Each key and value has a ma
120121
* `compute_min_instance_size` - Minimum instance size to which your cluster can automatically scale (such as M10).
121122
* `compute_max_instance_size` - Maximum instance size to which your cluster can automatically scale (such as M40).
122123

124+
### analytics_auto_scaling
125+
126+
* `disk_gb_enabled` - Flag that indicates whether this cluster enables disk auto-scaling.
127+
* `compute_enabled` - Flag that indicates whether instance size auto-scaling is enabled.
128+
* `compute_scale_down_enabled` - Flag that indicates whether the instance size may scale down.
129+
* `compute_min_instance_size` - Minimum instance size to which your cluster can automatically scale (such as M10).
130+
* `compute_max_instance_size` - Maximum instance size to which your cluster can automatically scale (such as M40).
131+
123132
#### Advanced Configuration
124133

125134
* `default_read_concern` - [Default level of acknowledgment requested from MongoDB for read operations](https://docs.mongodb.com/manual/reference/read-concern/) set for this cluster. MongoDB 4.4 clusters default to [available](https://docs.mongodb.com/manual/reference/read-concern-available/).
@@ -162,7 +171,7 @@ In addition to all arguments above, the following attributes are exported:
162171
- `connection_strings.private_endpoint.#.srv_connection_string` - Private-endpoint-aware `mongodb+srv://` connection string for this private endpoint. The `mongodb+srv` protocol tells the driver to look up the seed list of hosts in DNS . Atlas synchronizes this list with the nodes in a cluster. If the connection string uses this URI format, you don't need to: Append the seed list or Change the URI if the nodes change. Use this URI format if your driver supports it. If it doesn't, use `connection_strings.private_endpoint[n].connection_string`
163172
- `connection_strings.private_endpoint.#.type` - Type of MongoDB process that you connect to with the connection strings. Atlas returns `MONGOD` for replica sets, or `MONGOS` for sharded clusters.
164173
- `connection_strings.private_endpoint.#.endpoints` - Private endpoint through which you connect to Atlas when you use `connection_strings.private_endpoint[n].connection_string` or `connection_strings.private_endpoint[n].srv_connection_string`
165-
- `connection_strings.private_endoint.#.endpoints.#.endpoint_id` - Unique identifier of the private endpoint.
174+
- `connection_strings.private_endpoint.#.endpoints.#.endpoint_id` - Unique identifier of the private endpoint.
166175
- `connection_strings.private_endpoint.#.endpoints.#.provider_name` - Cloud provider to which you deployed the private endpoint. Atlas returns `AWS` or `AZURE`.
167176
- `connection_strings.private_endpoint.#.endpoints.#.region` - Region to which you deployed the private endpoint.
168177
* `paused` - Flag that indicates whether the cluster is paused or not.

website/docs/d/cluster.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ In addition to all arguments above, the following attributes are exported:
9494
- `connection_strings.private_endpoint.#.srv_connection_string` - Private-endpoint-aware `mongodb+srv://` connection string for this private endpoint.
9595
- `connection_strings.private_endpoint.#.type` - Type of MongoDB process that you connect to with the connection strings. Atlas returns `MONGOD` for replica sets, or `MONGOS` for sharded clusters.
9696
- `connection_strings.private_endpoint.#.endpoints` - Private endpoint through which you connect to Atlas when you use `connection_strings.private_endpoint[n].connection_string` or `connection_strings.private_endpoint[n].srv_connection_string`
97-
- `connection_strings.private_endoint.#.endpoints.#.endpoint_id` - Unique identifier of the private endpoint.
97+
- `connection_strings.private_endpoint.#.endpoints.#.endpoint_id` - Unique identifier of the private endpoint.
9898
- `connection_strings.private_endpoint.#.endpoints.#.provider_name` - Cloud provider to which you deployed the private endpoint. Atlas returns `AWS` or `AZURE`.
9999
- `connection_strings.private_endpoint.#.endpoints.#.region` - Region to which you deployed the private endpoint.
100100
* `disk_size_gb` - Indicates the size in gigabytes of the server’s root volume (AWS/GCP Only).

website/docs/d/clusters.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ In addition to all arguments above, the following attributes are exported:
9696
- `connection_strings.private_endpoint.#.srv_connection_string` - Private-endpoint-aware `mongodb+srv://` connection string for this private endpoint.
9797
- `connection_strings.private_endpoint.#.type` - Type of MongoDB process that you connect to with the connection strings. Atlas returns `MONGOD` for replica sets, or `MONGOS` for sharded clusters.
9898
- `connection_strings.private_endpoint.#.endpoints` - Private endpoint through which you connect to Atlas when you use `connection_strings.private_endpoint[n].connection_string` or `connection_strings.private_endpoint[n].srv_connection_string`
99-
- `connection_strings.private_endoint.#.endpoints.#.endpoint_id` - Unique identifier of the private endpoint.
99+
- `connection_strings.private_endpoint.#.endpoints.#.endpoint_id` - Unique identifier of the private endpoint.
100100
- `connection_strings.private_endpoint.#.endpoints.#.provider_name` - Cloud provider to which you deployed the private endpoint. Atlas returns `AWS` or `AZURE`.
101101
- `connection_strings.private_endpoint.#.endpoints.#.region` - Region to which you deployed the private endpoint.
102102
* `disk_size_gb` - Indicates the size in gigabytes of the server’s root volume (AWS/GCP Only).

0 commit comments

Comments
 (0)