Skip to content

Commit 90d8a28

Browse files
Updates the service_attachments to reduce from 40 to 1
1 parent 4b52aef commit 90d8a28

6 files changed

+7
-7
lines changed

docs/resources/rediscloud_active_active_private_service_connect_endpoint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ resource "rediscloud_active_active_subscription_regions" "regions" {
7979
}
8080
8181
locals {
82-
service_attachment_count = 40 # Each rediscloud_active_active_private_service_connect_endpoint will have exactly 40 service attachments
82+
service_attachment_count = 1 # Each rediscloud_active_active_private_service_connect_endpoint will have exactly 1 service attachment
8383
region_id = one([for r in rediscloud_active_active_subscription_regions.regions.region : r.region_id if r.region == var.gcp_region])
8484
}
8585

docs/resources/rediscloud_private_service_connect_endpoint.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ resource "rediscloud_subscription" "subscription" {
4343
}
4444
4545
locals {
46-
service_attachment_count = 40 # Each rediscloud_private_service_connect_endpoint will have exactly 40 service attachments
46+
service_attachment_count = 1 # Each rediscloud_private_service_connect_endpoint will have exactly 1 service attachment
4747
}
4848
4949
resource "rediscloud_private_service_connect" "service" {
@@ -195,7 +195,7 @@ module "private_service_connect" {
195195
## Attribute Reference
196196

197197
* `private_service_connect_endpoint_id` - The ID of the Private Service Connect Endpoint
198-
* `service_attachments` - The 40 service attachments that are created for the Private Service Connect endpoint, documented below
198+
* `service_attachments` - The service attachment that is created for the Private Service Connect endpoint, documented below
199199

200200
The `service_attachments` object has these attributes:
201201

provider/rediscloud_active_active_private_service_connect_endpoint_accepter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ resource "google_compute_subnetwork" "subnet" {
161161
}
162162
163163
locals {
164-
service_attachment_count = 40
164+
service_attachment_count = 1
165165
}
166166
167167
resource "google_compute_address" "default" {

provider/rediscloud_active_active_private_service_connect_endpoint_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func TestAccResourceRedisCloudActiveActivePrivateServiceConnectEndpoint_CRUDI(t
4848
}
4949
return nil
5050
}),
51-
resource.TestCheckResourceAttr(datasourceName, "endpoints.0.service_attachments.#", "40"),
51+
resource.TestCheckResourceAttr(datasourceName, "endpoints.0.service_attachments.#", "1"),
5252
),
5353
},
5454
{

provider/rediscloud_private_service_connect_endpoint_accepter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ resource "google_compute_subnetwork" "subnet" {
122122
}
123123
124124
locals {
125-
service_attachment_count = 40
125+
service_attachment_count = 1
126126
}
127127
128128
resource "google_compute_address" "default" {

provider/resource_rediscloud_pro_database_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func TestAccResourceRedisCloudProDatabase_CRUDI(t *testing.T) {
5454
resource.TestCheckResourceAttr(resourceName, "password", password),
5555
resource.TestCheckResourceAttr(resourceName, "alert.#", "1"),
5656
resource.TestCheckResourceAttr(resourceName, "alert.0.name", "dataset-size"),
57-
resource.TestCheckResourceAttr(resourceName, "alert.0.value", "40"),
57+
resource.TestCheckResourceAttr(resourceName, "alert.0.value", "1"),
5858
resource.TestCheckResourceAttr(resourceName, "modules.#", "1"),
5959
resource.TestCheckResourceAttr(resourceName, "modules.0.name", "RedisBloom"),
6060
resource.TestCheckResourceAttr(resourceName, "enable_default_user", "true"),

0 commit comments

Comments
 (0)