Skip to content

Commit 0c349b1

Browse files
committed
typos
1 parent 88653b0 commit 0c349b1

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This repository contains the Atlas CLI plugin for [Terraform's MongoDB Atlas Pro
99
The plugin provides the following commands to help with your Terraform configurations:
1010

1111
### 1. clusterToAdvancedCluster (clu2adv)
12-
Convert `mongodbatlas_cluster` resources to `mongodbatlas_advanced_cluster` Provider 2.0.0 schema.0.0.
12+
Convert `mongodbatlas_cluster` resources to `mongodbatlas_advanced_cluster` Provider 2.0.0 schema.
1313

1414
**Quick Start:**
1515
```bash

docs/command_adv2v2.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ dynamic "tags" {
5151
}
5252
```
5353

54-
### Dynamic blocks in regions_config
54+
### Dynamic blocks in region_configs
5555

56-
You can use `dynamic` blocks for `regions_config`. The plugin assumes that `for_each` has an expression which is evaluated to a `list` of objects.
56+
You can use `dynamic` blocks for `region_configs`. The plugin assumes that `for_each` has an expression which is evaluated to a `list` of objects.
5757

5858
This is an example of how to use dynamic blocks in `region_configs`:
5959
```hcl
@@ -108,9 +108,9 @@ If you need to use the plugin for `dynamic` block use cases not yet supported, p
108108

109109
#### Dynamic block and individual blocks in the same resource
110110

111-
Dynamic block and individual blocks for `region_configs` or `replication_specs` are not supported at the same time. The recommended way to handle this is to remove the individual `region_configs` or `replication_specs` blocks and use a local `list` variable to add the individual block information to the variable you're using in the `for_each` expression, using [concat](https://developer.hashicorp.com/terraform/language/functions/concat).
111+
Dynamic block and individual blocks for `region_configs` or `replication_specs` are not supported at the same time. The recommended way to handle this is to remove the individual `region_configs` or `replication_specs` blocks and use a local `list` variable with [concat](https://developer.hashicorp.com/terraform/language/functions/concat) to add the individual block information to the variable you're using in the `for_each` expression.
112112

113-
Let's see an example with `regions_config`, it is the same idea for `replication_specs`. In the original configuration file, the `mongodb_cluster` resource is used inside a module that receives the `region_configs` elements in a `list` variable and we want to add an additional `region_configs` with a read-only node.
113+
Let's see an example with `region_configs`, it is the same idea for `replication_specs`. In the original configuration file, the `mongodb_cluster` resource is used inside a module that receives the `region_configs` elements in a `list` variable and we want to add an additional `region_configs` with a read-only node.
114114
```hcl
115115
variable "replication_specs" {
116116
type = object({
@@ -192,8 +192,8 @@ resource "mongodbatlas_advanced_cluster" "this" {
192192
cluster_type = var.cluster_type
193193
replication_specs {
194194
num_shards = var.replication_specs.num_shards
195-
dynamic "regions_config" {
196-
for_each = local.regions_config_all # changed to use the local variable
195+
dynamic "region_configs" {
196+
for_each = local.region_configs_all # changed to use the local variable
197197
priority = region_configs.value.priority
198198
provider_name = region_configs.value.provider_name
199199
region_name = region_configs.value.region_name

docs/command_clu2adv.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
clusterToAdvancedCluster (clu2adv) command helps you migrate from `mongodbatlas_cluster` to `mongodbatlas_advanced_cluster` Provider 2.0.0 schema.
44

5-
## Usage
6-
75
You can find more information in the [Migration Guide: Cluster to Advanced Cluster](https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/guides/cluster-to-advanced-cluster-migration-guide).
86

7+
## Usage
8+
99
If you want to convert a Terraform configuration from `mongodbatlas_cluster` to `mongodbatlas_advanced_cluster`, use the following command:
1010
```bash
1111
atlas terraform clusterToAdvancedCluster --file in.tf --output out.tf
@@ -102,7 +102,7 @@ If you need to use the plugin for `dynamic` block use cases not yet supported, p
102102

103103
#### Dynamic block and individual blocks in the same resource
104104

105-
Dynamic block and individual blocks for `regions_config` or `replication_specs` are not supported at the same time. The recommended way to handle this is to remove the individual `regions_config` or `replication_specs` blocks and use a local `list` variable to add the individual block information to the variable you're using in the `for_each` expression, using [concat](https://developer.hashicorp.com/terraform/language/functions/concat).
105+
Dynamic block and individual blocks for `regions_config` or `replication_specs` are not supported at the same time. The recommended way to handle this is to remove the individual `regions_config` or `replication_specs` blocks and use a local `list` variable with [concat](https://developer.hashicorp.com/terraform/language/functions/concat) to add the individual block information to the variable you're using in the `for_each` expression,.
106106

107107
Let's see an example with `regions_config`, it is the same idea for `replication_specs`. In the original configuration file, the `mongodb_cluster` resource is used inside a module that receives the `regions_config` elements in a `list` variable and we want to add an additional `regions_config` with a read-only node.
108108
```hcl
@@ -143,7 +143,7 @@ resource "mongodbatlas_cluster" "this" {
143143
}
144144
```
145145

146-
We modify the configuration file to create an intermediate `local` variable to merge the `regions_config` variable elements and the additional `region_config`:
146+
We modify the configuration file to create an intermediate `local` variable to merge the `regions_config` variable elements and the additional `regions_config`:
147147
```hcl
148148
variable "replication_specs" {
149149
type = object({

0 commit comments

Comments
 (0)