Skip to content

Commit 78218c0

Browse files
marcosumaCopilotjwilliams-mongolantoli
authored
doc: Updates the migration to advanced_cluster 2.0.0 doc (#3688)
Co-authored-by: Copilot <[email protected]> Co-authored-by: John Williams <[email protected]> Co-authored-by: Leo Antoli <[email protected]>
1 parent 88aebbf commit 78218c0

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

docs/guides/migrate-to-advanced-cluster-2.0.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ This guide helps you migrate from the legacy schema of `mongodbatlas_advanced_cl
1616
In this section you can find the configuration changes between the legacy `mongodbatlas_advanced_cluster` and the new one released in v2.0.0.
1717

1818
1. Below deprecated attributes have been removed:
19-
- `id`
20-
- `disk_size_gb`
21-
- `replication_specs.#.num_shards`
22-
- `replication_specs.#.id`
23-
- `advanced_configuration.default_read_concern`
24-
- `advanced_configuration.fail_index_key_too_long`
19+
- `id`
20+
- `disk_size_gb`
21+
- `replication_specs.#.num_shards`
22+
- `replication_specs.#.id`
23+
- `advanced_configuration.default_read_concern`
24+
- `advanced_configuration.fail_index_key_too_long`
2525

2626
2. Elements `replication_specs` and `region_configs` are now list attributes instead of blocks so they are an array of objects. If there is only one object, it still needs to be in an array. For example,
2727
```terraform
@@ -155,6 +155,8 @@ tags = {
155155

156156
If you currently use `mongodbatlas_cluster`, see our [Migration Guide](https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/guides/cluster-to-advanced-cluster-migration-guide).
157157

158+
If you currently use `mongodbatlas_advanced_cluster` with the preview of the new schema [released in versions 1.29.0](https://registry.terraform.io/providers/mongodb/mongodbatlas/1.29.0/docs/resources/advanced_cluster%2520%2528preview%2520provider%25202.0.0%2529) **and you are not using deprecated attributes**, you would not be required to make any additional changes except removing the `MONGODB_ATLAS_PREVIEW_PROVIDER_V2_ADVANCED_CLUSTER=true` environment variable, which is no longer required.
159+
158160
If you currently use `mongodbatlas_advanced_cluster` from v1.x.x of our provider, we recommend that you do the following steps:
159161

160162
~> **IMPORTANT:** Before you migrate, create a backup of your [Terraform state file](https://developer.hashicorp.com/terraform/cli/commands/state). The state file will update to the new format and the old format will no longer be supported.

0 commit comments

Comments
 (0)