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: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,8 @@ dynamic "tags" {
76
76
#### Dynamic blocks in regions_config
77
77
78
78
You can use `dynamic` blocks for `regions_config`. The plugin assumes that `for_each` has an expression which is evaluated to a `list` or `set` of objects.
79
-
Dynamic block and individual blocks for `regions_config` are not supported at the same time in a `replication_specs`. This is an example of how to use dynamic blocks in `regions_config`:
79
+
Dynamic block and individual blocks for `regions_config` are not supported at the same time in a `replication_specs`. If you need this use case, please send us feedback.
80
+
This is an example of how to use dynamic blocks in `regions_config`:
80
81
```hcl
81
82
replication_specs {
82
83
num_shards = var.replication_specs.num_shards
@@ -96,7 +97,7 @@ Dynamic block and individual blocks for `regions_config` are not supported at th
96
97
### Limitations
97
98
98
99
-[`num_shards`](https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/resources/cluster#num_shards-2) in `replication_specs` must be a numeric [literal expression](https://developer.hashicorp.com/nomad/docs/job-specification/hcl2/expressions#literal-expressions), e.g. `var.num_shards` is not supported. This is to allow creating a `replication_specs` element per shard in `mongodbatlas_advanced_cluster`. This limitation doesn't apply if you're using `dynamic` blocks in `regions_config` or `replication_specs`.
99
-
-`dynamic` blocks are currently supported only for `tags`, `labels` and `regions_config`. **Coming soon**: support for `replication_specs`.
100
+
-`dynamic` blocks are currently supported only for `tags`, `labels` and `regions_config`. See their limitations in their corresponding dynamic block sections above. **Coming soon**: support for `replication_specs`.
0 commit comments