Skip to content

Commit 2a78f2e

Browse files
Merge pull request #706 from RedisLabs/feat/subscriptions-id-v2
feat: add account ids and essentials database version support
2 parents fe3b903 + aef5318 commit 2a78f2e

35 files changed

+399
-28
lines changed

.github/workflows/terraform_provider_pr.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ jobs:
149149

150150

151151
go_test_smoke_essentials_db:
152-
if: false # Temporarily disabled - waiting on client fixes
153152
name: go test smoke essentials db
154153
needs: go_test_smoke_essentials_sub
155154
runs-on: ubuntu-latest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ terraform.tfplan
66
terraform.tfstate
77
bin/
88
dist/
9+
terraform-plugin-dir/
910
.envrc
1011
modules-dev/
1112
/pkg/

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
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.
14+
15+
## Fixed
16+
- Spurious diffs for `customer_managed_key_deletion_grace_period` are now suppressed when upgrading the provider.
617

718
# 2.7.4 (7th November 2025)
819

GNUmakefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ clean:
3636
testacc: bin
3737
TF_ACC=1 go test ./... -v $(TESTARGS) -timeout 360m -p=1 -parallel=$(TEST_PARALLELISM) -coverprofile bin/coverage.out
3838

39+
# Essentials tests must run serially due to API limitation of one essentials db per account
40+
testacc-essentials: bin
41+
TF_ACC=1 go test ./provider -v -run="TestAccResourceRedisCloudEssentials|TestAccDataSourceRedisCloudEssentials" -timeout 360m -p=1 -parallel=1 -coverprofile bin/coverage.out
42+
3943
generate_coverage:
4044
go tool cover -html=bin/coverage.out -o bin/coverage.html
4145

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 unique identifier 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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ data "rediscloud_essentials_database" "example" {
3333
## Argument Reference
3434

3535
* `subscription_id` - (Required) ID of the subscription that the database belongs to
36-
* `db_id` - (Optional) The id of the database to filter returned databases
36+
* `db_id` - (Optional) The ID of the database to filter returned databases
3737
* `name` - (Optional) The name of the database to filter returned databases
3838

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

0 commit comments

Comments
 (0)