Skip to content

Commit

Permalink
update the doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiieu committed Jun 30, 2022
1 parent d9d2a0f commit a964d18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/guides/migration-guide-v1.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Those enhancements are described below:
`database` block inside the subscription resource. A `TypeSet` was used by the `database` attribute where an index
value of the block is calculated by the hash of the attributes. That means, if you change an attribute inside the
block, then Terraform would produce the misleading plan telling you that the whole database is going to be recreated.
However, under the hood, the provider doesn't delete the database and just updates the attributes unless the `name`
However, under the hood, the provider doesn't delete the database and only updates its properties unless the `name`
attribute was changed. In order to fix this, the database block has been moved to a separate resource.
* **Separate database resource**: In order to fix the misleading plan, the database block has been moved to a separate
resource. This allows the user to take greater control over the database resource. That is:
Expand All @@ -47,7 +47,7 @@ The `rediscloud_subscription` no longer supports the `database` block, and a new
introduced. In this case, you only need to modify your existing `rediscloud_subscription` schema and create a new
resource called `rediscloud_database` for each of your databases in the subscription.

~> **Note**: If you want to create a new subscription, then the `creation_plan` block is required.
~> **Note:** If you want to create a new subscription, then the `creation_plan` block is required.

Here is an example of an old Terraform configuration:

Expand Down Expand Up @@ -183,7 +183,7 @@ resources for your databases. Like so:
terraform state show rediscloud_subscription.example;
terraform state show rediscloud_database.first_database;
```
~>**OPTIONAL**: If you have other resources like `rediscloud_cloud_account` or `rediscloud_subscription_peering`, then
**OPTIONAL**: If you have other resources like `rediscloud_cloud_account` or `rediscloud_subscription_peering`, then
you can check if they are valid:
```bash
# Check if the cloud account resource is valid
Expand Down

0 comments on commit a964d18

Please sign in to comment.