You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/command_adv2v2.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,8 +37,8 @@ We recommend reviewing the output and making sure it fits your needs.
37
37
38
38
### Dynamic blocks in tags and labels
39
39
40
-
You can use `dynamic` blocks for `tags` and `labels`. The plugin assumes that `for_each`has an expression which is evaluated to a `map` of strings.
41
-
You can also combine the use of dynamic blocks in `tags` and `labels` with individual blocks in the same cluster definition, e.g.:
40
+
You can use `dynamic` blocks for `tags` and `labels`. The plugin assumes that the value of `for_each`is an expression which evaluates to a `map` of strings.
41
+
You can also combine the use of dynamic blocks in `tags` and `labels` with individual blocks in the same cluster definition, for example:
42
42
```hcl
43
43
tags {
44
44
key = "environment"
@@ -80,7 +80,7 @@ replication_specs {
80
80
81
81
### Dynamic blocks in replication_specs
82
82
83
-
You can use `dynamic` blocks for `replication_specs`. The plugin assumes that `for_each`has an expression which is evaluated to a `list` of objects.
83
+
You can use `dynamic` blocks for `replication_specs`. The plugin assumes that the value of `for_each`is an expression which evaluates to a `list` of objects.
84
84
85
85
This is an example of how to use dynamic blocks in `replication_specs`:
86
86
```hcl
@@ -112,7 +112,7 @@ If you need to use the plugin for `dynamic` block use cases not yet supported, p
112
112
113
113
Dynamic blocks and individual blocks for `region_configs` or `replication_specs` are not supported at the same time. 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.
114
114
115
-
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.
115
+
Let's see an example with `region_configs`; it's 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.
@@ -38,7 +38,7 @@ We recommend reviewing the output and making sure it fits your needs.
38
38
### Dynamic blocks in tags and labels
39
39
40
40
You can use `dynamic` blocks for `tags` and `labels`. The plugin assumes that the value of `for_each` is an expression which evaluates to a `map` of strings.
41
-
You can also combine the use of dynamic blocks in `tags` and `labels` with individual blocks in the same cluster definition, e.g.:
41
+
You can also combine the use of dynamic blocks in `tags` and `labels` with individual blocks in the same cluster definition, for exaple:
42
42
```hcl
43
43
tags {
44
44
key = "environment"
@@ -55,7 +55,7 @@ dynamic "tags" {
55
55
56
56
### Dynamic blocks in regions_config
57
57
58
-
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.
58
+
You can use `dynamic` blocks for `regions_config`. The plugin assumes that the value of `for_each`is an expression which evaluates to a `list` of objects.
59
59
60
60
This is an example of how to use dynamic blocks in `regions_config`:
61
61
```hcl
@@ -106,7 +106,7 @@ If you need to use the plugin for `dynamic` block use cases not yet supported, p
106
106
107
107
Dynamic blocks and individual blocks for `regions_config` or `replication_specs` are not supported at the same time. 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.
108
108
109
-
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.
109
+
Let's see an example with `regions_config`, it's 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.
This modified configuration file has the same behavior as the original one, but it doesn't have individual blocks anymore, only the `dynamic` block, so it is supported by the plugin.
196
+
This modified configuration file has the same behavior as the original one, but it doesn't have individual blocks anymore, only the `dynamic` block, so it's supported by the plugin.
0 commit comments