Skip to content

Commit a84c044

Browse files
committed
feat: add account ids and essentials database version support
1 parent fe3b903 commit a84c044

31 files changed

+338
-23
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See updating [Changelog example here](https://keepachangelog.com/en/1.0.0/)
55

6+
# 2.8.0 (10th November 2025)
7+
8+
## Added
9+
- Added support for database version for Essentials databases.
10+
- Added `aws_account_id` attribute to Pro and Active-Active subscription resources and data sources.
11+
- Added `region_id` to the attribute reference documentation for `rediscloud_active_active_subscription_regions` data source.
12+
- Added `region_id` attribute to `rediscloud_regions` data source.
13+
- Added `db_id` to the attribute reference documentation for `rediscloud_database` data source.
614

715
# 2.7.4 (7th November 2025)
816

docs/data-sources/rediscloud_active_active_subscription.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ output "rediscloud_active_active_subscription" {
3333

3434
`id` is set to the ID of the found subscription.
3535

36+
* `aws_account_id` - AWS account ID that the subscription is deployed in (AWS subscriptions only).
3637
* `payment_method` (Optional) The payment method for the requested subscription, (either `credit-card`
3738
or `marketplace`). If `credit-card` is specified, `payment_method_id` must be defined. Default: 'credit-card'. **(
3839
Changes to) this attribute are ignored after creation.**

docs/data-sources/rediscloud_active_active_subscription_regions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ output "rediscloud_active_active_subscription_regions" {
3333

3434
Each block within the `regions` list supports:
3535

36+
* `region_id` - The ID of the region.
3637
* `region` - Deployment region as defined by the cloud provider.
3738
* `networking_deployment_cidr` - Deployment CIDR mask.
3839
* `vpc_id` - VPC ID for the region.

docs/data-sources/rediscloud_database.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@ data "rediscloud_database" "example" {
3434
## Argument Reference
3535

3636
* `subscription_id` - (Required) ID of the subscription that the database belongs to
37+
* `db_id` - (Optional) The id of the database to filter returned databases
3738
* `name` - (Optional) The name of the database to filter returned databases
3839
* `protocol` - (Optional) The protocol of the database to filter returned databases
3940
* `region` - (Optional) The region of the database to filter returned databases
4041

4142
## Attributes Reference
4243

44+
* `db_id` - The ID of the database
4345
* `name` - The name of the database
4446
* `protocol` - The protocol of the database.
4547
* `memory_limit_in_gb` - The maximum memory usage for the database.

docs/data-sources/rediscloud_essentials_database.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ data "rediscloud_essentials_database" "example" {
3939
## Attribute Reference
4040

4141
* `protocol` - The protocol of the database. Either `redis`, `memcached` or `stack`.
42+
* `redis_version` - The Redis database version.
4243
* `cloud_provider` - The Cloud Provider hosting this database.
4344
* `region` - The region within the Cloud Provider where this database is hosted.
4445
* `redis_version_compliance` - The compliance level (redis version) of this database.

docs/data-sources/rediscloud_regions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ data "rediscloud_regions" "example_gcp" {
4444

4545
Each region entry provides the following attributes
4646

47+
* `region_id` The unique identifier of the region
48+
4749
* `name` The identifier assigned by the cloud provider, (for example `eu-west-1` for `AWS`)
4850

4951
* `provider_name` The identifier of the owning cloud provider, (either `AWS` or `GCP`)

docs/data-sources/rediscloud_subscription.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ output "rediscloud_subscription" {
3232

3333
`id` is set to the ID of the found subscription.
3434

35+
* `aws_account_id` - AWS account ID that the subscription is deployed in (AWS subscriptions only).
3536
* `payment_method_id` - A valid payment method pre-defined in the current account
36-
* `memory_storage` - Memory storage preference: either ram or a combination of 'ram-and-flash
37+
* `memory_storage` - Memory storage preference: either 'ram' or a combination of 'ram-and-flash'
3738
* `cloud_provider` - A cloud provider object, documented below
3839
* `number_of_databases` - The number of databases that are linked to this subscription.
39-
* `status` - Current status of the subscription
40+
* `status` - Current status of the subscription
4041
* `maintenance_windows` - Details about the subscription's maintenance window specification, documented below
4142
* `pricing` - A list of pricing objects, documented below
4243

docs/resources/rediscloud_active_active_subscription.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ The `creation_plan` block supports:
7373
* `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 favor of `dataset_size_in_gb` - not possible to import databases with this attribute set**
7474
* `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
7575
* `quantity` - (Required) The planned number of databases in the subscription.
76-
* `modules` - (Optional) A list of modules to be enabled on all deployments of this database. Either: `RedisJSON` or `RediSearch`.
76+
* `modules` - (Optional) A list of modules to be enabled on all deployments of this database. Either: `RedisJSON` or `RediSearch`. **Don't specify modules for DB versions 8 and above. All capabilities are bundled in the DB by default.**
7777
* `region` - (Required) Deployment region block, documented below
7878

7979
The creation_plan `region` block supports:
@@ -102,8 +102,8 @@ The `window` object has these attributes:
102102

103103
## Attribute reference
104104

105+
* `aws_account_id` - AWS account ID that the subscription is deployed in (AWS subscriptions only).
105106
* `customer_managed_key_redis_service_account` - Outputs the id of the service account associated with the subscription. Useful as part of the CMK flow.
106-
107107
* `pricing` - A list of pricing objects, documented below
108108

109109
The `pricing` object has these attributes:

docs/resources/rediscloud_active_active_subscription_database.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ The following arguments are supported:
101101
* `global_data_persistence` - (Optional) Global rate of database data persistence (in persistent storage) of regions that dont override global settings. Default: 'none'
102102
* `global_password` - (Optional) Password to access the database of regions that don't override global settings. If left empty, the password will be generated automatically
103103
* `global_alert` - (Optional) A block defining Redis database alert of regions that don't override global settings, documented below, can be specified multiple times. (either: 'dataset-size', 'datasets-size', 'throughput-higher-than', 'throughput-lower-than', 'latency', 'syncsource-error', 'syncsource-lag' or 'connections-limit')
104-
* `global_modules` - (Optional) A list of modules to be enabled on all deployments of this database. Supported modules: `RedisJSON`, `RediSearch`. Ignored after database creation.
104+
* `global_modules` - (Optional) A list of modules to be enabled on all deployments of this database. Supported modules: `RedisJSON`, `RediSearch`. **Don't specify modules for DB versions 8 and above. All capabilities are bundled in the DB by default.**
105105
* `global_source_ips` - (Optional) List of source IP addresses or subnet masks that are allowed to connect to the database across all regions that don't override this setting (example: ['192.168.10.0/32', '192.168.12.0/24']). When not specified, the default behavior depends on the subscription's `public_endpoint_access` setting: if `false`, defaults to RFC1918 private IP ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10); if `true`, defaults to 0.0.0.0/0 (unrestricted public access)
106106
* `global_enable_default_user` - (Optional) When 'true', enables connecting to the database with the 'default' user across all regions. Default: 'true'. To disable, explicitly set to 'false'
107107
* `global_resp_version` - (Optional) Either 'resp2' or 'resp3'. Resp version for Crdb databases within the AA database. Must be compatible with Redis version.

docs/resources/rediscloud_essentials_database.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ The following arguments are supported:
5858
* `subscription_id` - (Required) The ID of the subscription to create the database in. **Modifying this attribute will force creation of a new resource.**
5959
* `name` - (Required) A meaningful name to identify the database.
6060
* `protocol` - (Optional) Database protocol. 'stack' is a suite of all Redis' data modules. Default: 'stack'. Either: 'redis', 'memcached' or 'stack'. **'redis' is only used with Pay-As-You-Go databases.**
61+
* `redis_version` - (Optional) Defines the Redis database version. If omitted, the Redis version will be set to the default version.
6162
* `resp_version` - (Optional) RESP version must be compatible with the Redis version.
6263
* `data_persistence` - (Required) Rate of database data persistence (in persistent storage). Either: 'none', 'aof-every-1-second', 'aof-every-write', 'snapshot-every-1-hour', 'snapshot-every-6-hours' or 'snapshot-every-12-hours'.
6364
* `data_eviction` - (Optional) Data items eviction method. Either: 'allkeys-lru', 'allkeys-lfu', 'allkeys-random', 'volatile-lru', 'volatile-lfu', 'volatile-random', 'volatile-ttl' or 'noeviction'. Default: 'volatile-lru'.
@@ -70,7 +71,7 @@ The following arguments are supported:
7071
* `enable_default_user` - (Optional) When `true` enables connecting to the database with the default user. Default `true`. If set to `false`, any value for `password` will be ignored.
7172
* `alert` - (Optional) A block defining Redis database alert. Can be specified multiple times. Documented below.
7273
* `tags` - (Optional) A string/string map of tags to associate with this database. Note that all keys and values must be lowercase.
73-
* `modules` - (Optional) A list of modules objects, documented below. **Modifying this attribute will force creation of a new resource.**
74+
* `modules` - (Optional) A list of modules objects, documented below. **Don’t specify modules for DB versions 8 and above. All capabilities are bundled in the DB by default.**
7475
* `enable_payg_features` - (Optional) Whether to enable features restricted to Pay-As-You-Go legacy databases. It is not supported for new databases. Default `false`.
7576
* `memory_limit_in_gb` - (Optional) **Only used with Pay-As-You-Go databases.** Maximum memory usage for the database.
7677
* `support_oss_cluster_api` - (Optional) **Only used with Pay-As-You-Go databases.** Support Redis open-source (OSS) Cluster API. Default `false`.

0 commit comments

Comments
 (0)