Skip to content

Commit 3930b46

Browse files
Tweak to documentation explaining caveats (#566)
Co-authored-by: Trent Rosenbaum <[email protected]>
1 parent 93c6bd2 commit 3930b46

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

docs/resources/rediscloud_active_active_subscription_database.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,5 +153,12 @@ $ terraform import rediscloud_active_active_subscription_database.database-resou
153153

154154
Note: Due to constraints in the Redis Cloud API, the import process will not import global attributes or override region attributes. If you wish to use these attributes in your Terraform configuration, you will need to manually add them to your Terraform configuration and run `terraform apply` to update the database.
155155

156-
Additionally, the `memory_limit_in_gb` cannot be set during imports as it is deprecated. If you need to set the `memory_limit_in_gb` attribute, you will need to create a new database resource. It is recommended to use the `dataset_size_in_gb` attribute instead.
156+
Additionally, the `memory_limit_in_gb` cannot be set during imports as it is deprecated. If you need to set the `memory_limit_in_gb` attribute, you will need to create a new database resource. It is recommended to use the `dataset_size_in_gb` attribute instead since imports are supported.
157157

158+
To update an existing configuration for a database which uses the `memory_limit_in_gb` field to use `dataset_size_in_gb`, you need to remove it from the state and import the resource again. e.g.
159+
160+
```
161+
$ terraform state rm rediscloud_active_active_subscription_database.database-resource
162+
(Update the configuration to use `dataset_size_in_gb` instead of `memory_limit_in_gb`)
163+
$ terraform import rediscloud_active_active_subscription_database.database-resource 123456/12345678
164+
```

docs/resources/rediscloud_subscription_database.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,12 @@ The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/l
163163
$ terraform import rediscloud_subscription_database.database-resource 123456/12345678
164164
```
165165

166-
Note: Due to constraints in the Redis Cloud API, the `memory_limit_in_gb` cannot be set during imports as it is deprecated. If you need to set the `memory_limit_in_gb` attribute, you will need to create a new database resource. It is recommended to use the `dataset_size_in_gb` attribute instead.
166+
Note: Due to constraints in the Redis Cloud API, the `memory_limit_in_gb` cannot be set during imports as it is deprecated. If you need to set the `memory_limit_in_gb` attribute, you will need to create a new database resource. It is recommended to use the `dataset_size_in_gb` attribute instead since imports are supported.
167+
168+
To update an existing configuration for a database which uses the `memory_limit_in_gb` field to use `dataset_size_in_gb`, you need to remove it from the state and import the resource again. e.g.
169+
170+
```
171+
$ terraform state rm rediscloud_subscription_database.database-resource
172+
(Update the configuration to use `dataset_size_in_gb` instead of `memory_limit_in_gb`)
173+
$ terraform import rediscloud_subscription_database.database-resource 123456/12345678
174+
```

0 commit comments

Comments
 (0)