Skip to content

Commit eddaa86

Browse files
committed
apply more feedback
1 parent 3f5d2b2 commit eddaa86

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

docs/command_adv2v2.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,11 @@ If you need to use the plugin for `dynamic` block use cases not yet supported, p
110110

111111
#### Combination of blocks with dynamic and inline expressions
112112

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.
113+
Dynamic blocks and individual blocks for `region_configs` or `replication_specs` are not supported at the same time. To continue using this plugin, remove `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.
114114

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.
115+
#### Example
116+
117+
Let's see an example with `region_configs`, the same idea applies 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.
116118
```hcl
117119
variable "replication_specs" {
118120
type = object({

docs/command_clu2adv.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,11 @@ If you need to use the plugin for `dynamic` block use cases not yet supported, p
104104

105105
#### Combination of blocks with dynamic and inline expressions
106106

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.
107+
Dynamic blocks and individual blocks for `regions_config` or `replication_specs` are not supported at the same time. To continue using this plugin, remove `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.
108108

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.
109+
#### Example
110+
111+
Let's see an example with `regions_config`, the same idea applies 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.
110112
```hcl
111113
variable "replication_specs" {
112114
type = object({

0 commit comments

Comments
 (0)