You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Managing Dataset Size with the Regions Resource
2
+
3
+
For Active-Active databases, you can manage `dataset_size_in_gb` via either the `rediscloud_active_active_database` resource or the `rediscloud_active_active_subscription_regions` resource. Managing it via the regions resource allows you to update both database sizing and per-region throughput in a single operation.
4
+
5
+
~> **Critical:** The `dataset_size_in_gb` field is a global property that applies to all regional instances of this Active-Active database. You must choose **ONE** of the patterns below and use it consistently. **Never set different values in both resources** - this will cause Terraform to continuously revert changes between apply operations.
6
+
7
+
#### Option 1: Reference Pattern (Recommended)
8
+
9
+
Set `dataset_size_in_gb` on the regions resource and reference it from the database resource. This ensures a single source of truth and prevents conflicts:
-> **Note:** Option 1 (reference pattern) is recommended as it eliminates the risk of setting different values and provides clearer intent.
70
+
71
+
#### Option 3: Database Resource Only
72
+
73
+
If you don't need to coordinate dataset size changes with per-region throughput updates, you can manage `dataset_size_in_gb` solely on the database resource without using the regions resource:
For Active-Active databases, you can manage `dataset_size_in_gb` via either this database resource or the `rediscloud_active_active_subscription_regions` resource. Managing it via the regions resource allows you to update both database sizing and per-region throughput in a single operation.
89
-
90
-
~> **Critical:** The `dataset_size_in_gb` field is a **global property** that applies to **all databases** in the subscription. You must choose **ONE** of the patterns below and use it consistently. **Never set different values in both resources** - this will cause Terraform to continuously revert changes between apply operations.
91
-
92
-
#### Option 1: Reference Pattern (Recommended)
93
-
94
-
Set `dataset_size_in_gb` on the regions resource and reference it from the database resource. This ensures a single source of truth and prevents conflicts:
-> **Note:** Option 1 (reference pattern) is recommended as it eliminates the risk of setting different values and provides clearer intent.
155
-
156
-
#### Option 3: Database Resource Only
157
-
158
-
If you don't need to coordinate dataset size changes with per-region throughput updates, you can manage `dataset_size_in_gb` solely on the database resource without using the regions resource:
*`subscription_id`: (Required) The ID of the Active-Active subscription to create the database in. **Modifying this attribute will force creation of a new resource.**
173
90
*`name` - (Required) A meaningful name to identify the database. **Modifying this attribute will force creation of a new resource.**
174
91
*`redis_version` - (Optional) The Redis version of the database. If omitted, the Redis version will be the default. **Modifying this attribute will force creation of a new resource.**
175
92
*`memory_limit_in_gb` - (Optional - **Required if `dataset_size_in_gb` is unset**) Maximum memory usage for this specific database, including replication and other overhead **Deprecated in favour of `dataset_size_in_gb` - not possible to import databases with this attribute set**
176
-
*`dataset_size_in_gb` - (Optional - **Required if `memory_limit_in_gb` is unset**) The maximum amount of data in the dataset for this specific database is in GB. Can also be managed via the `rediscloud_active_active_subscription_regions` resource. To avoid conflicts when using both resources, either reference the regions value or use `depends_on` to ensure proper ordering.
93
+
*`dataset_size_in_gb` - (Optional - **Required if `memory_limit_in_gb` is unset**) The maximum amount of data in the dataset for this specific database is in GB. Can also be managed via the `rediscloud_active_active_subscription_regions` resource. To avoid conflicts when using both resources, you must either reference the regions value or use `depends_on` to ensure proper ordering. Do not set different values in both resources. Refer to [this guide](../guides/managing-regional-datasets.md) for more information.
The `dataset_size_in_gb` field can be set on either the `rediscloud_active_active_subscription_regions` resource or the `rediscloud_active_active_subscription_database` resource. Setting it on the regions resource allows you to update both database sizing and per-region throughput in a single operation.
48
48
49
-
~> **Critical:** The `dataset_size_in_gb` field is a **global property** that applies to **all databases** in the subscription. You must choose **ONE** of the patterns below and use it consistently. **Never set different values in both resources** - this will cause Terraform to continuously revert changes between apply operations.
50
-
51
-
#### Option 1: Reference Pattern (Recommended)
52
-
53
-
Set `dataset_size_in_gb` on the regions resource and reference it from the database resource. This ensures a single source of truth:
-> **Note:** Option 1 (reference pattern) is recommended as it eliminates the risk of setting different values and provides clearer intent.
49
+
Refer to [this guide](../guides/managing-regional-datasets.md) for more information.
140
50
141
51
## Argument Reference
142
52
143
53
The following arguments are supported:
144
54
145
55
*`subscription_id` - (Required) ID of the subscription that the regions belong to. **Modifying this attribute will force creation of a new resource.**
146
56
*`delete_regions` - (Optional) Flag required to be set when one or more regions is to be deleted, if the flag is not set an error will be thrown
147
-
*`dataset_size_in_gb` - (Optional) Maximum amount of data in the dataset for all databases in this subscription in GB. This is a global property that updates all databases. To avoid conflicts, either reference this value from the database resource or use depends_on to ensure proper ordering. Do not set different values in both resources.
57
+
*`dataset_size_in_gb` - (Optional) Maximum amount of data in the dataset for all regions in GB. Can also be managed via the `rediscloud_active_active_database` resource. To avoid conflicts, either reference this value from the database resource or use depends_on to ensure proper ordering. Do not set different values in both resources. Refer to [this guide](../guides/managing-regional-datasets.md) for more information.
58
+
148
59
*`region` - (Required) Cloud networking details, per region, documented below
0 commit comments