Skip to content

Commit 32ca654

Browse files
committed
add dynamic block doc
1 parent 4ab2d3a commit 32ca654

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ dynamic "tags" {
7676
#### Dynamic blocks in regions_config
7777

7878
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`:
8081
```hcl
8182
replication_specs {
8283
num_shards = var.replication_specs.num_shards
@@ -96,7 +97,7 @@ Dynamic block and individual blocks for `regions_config` are not supported at th
9697
### Limitations
9798

9899
- [`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`.
100101

101102
## Feedback
102103

0 commit comments

Comments
 (0)