Skip to content

Commit 0bcfcae

Browse files
committed
tweak to documentation explaining caveats
1 parent 2cd463c commit 0bcfcae

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
@@ -179,5 +179,12 @@ $ terraform import rediscloud_active_active_subscription_database.database-resou
179179

180180
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.
181181

182-
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.
182+
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.
183183

184+
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.
185+
186+
```
187+
$ terraform state rm rediscloud_active_active_subscription_database.database-resource
188+
(Update the configuration to use `dataset_size_in_gb` instead of `memory_limit_in_gb`)
189+
$ terraform import rediscloud_active_active_subscription_database.database-resource 123456/12345678
190+
```

docs/resources/rediscloud_subscription_database.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,12 @@ The `response` block `latest_import_status` contains:
189189
$ terraform import rediscloud_subscription_database.database-resource 123456/12345678
190190
```
191191

192-
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.
192+
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.
193+
194+
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.
195+
196+
```
197+
$ terraform state rm rediscloud_subscription_database.database-resource
198+
(Update the configuration to use `dataset_size_in_gb` instead of `memory_limit_in_gb`)
199+
$ terraform import rediscloud_subscription_database.database-resource 123456/12345678
200+
```

0 commit comments

Comments
 (0)