From e93c42191298d169d1d1b4bc81c64a04f0b33d53 Mon Sep 17 00:00:00 2001 From: Mateus Pimenta <1920261+matpimenta@users.noreply.github.com> Date: Thu, 23 Jan 2025 16:31:19 +0000 Subject: [PATCH] Remove module --- ...active_private_service_connect_endpoint.md | 92 ------------------- ...scloud_private_service_connect_endpoint.md | 51 ---------- 2 files changed, 143 deletions(-) diff --git a/docs/resources/rediscloud_active_active_private_service_connect_endpoint.md b/docs/resources/rediscloud_active_active_private_service_connect_endpoint.md index 831fa230..f12d6a0c 100644 --- a/docs/resources/rediscloud_active_active_private_service_connect_endpoint.md +++ b/docs/resources/rediscloud_active_active_private_service_connect_endpoint.md @@ -172,98 +172,6 @@ resource "rediscloud_active_active_private_service_connect_endpoint_accepter" "a ``` -## Example Usage with Redis Private Service Connect Module - -The example below creates a Private Service Connect Endpoint in an Active-Active subscription using a Terraform module. -We recommend using the module as it simplifies the Terraform configuration. - -```hcl -data "rediscloud_payment_method" "card" { - card_type = "Visa" -} - -resource "rediscloud_active_active_subscription" "subscription" { - name = "subscription-name" - payment_method_id = data.rediscloud_payment_method.card.id - cloud_provider = "GCP" - - creation_plan { - memory_limit_in_gb = 1 - quantity = 1 - region { - region = "us-central1" - networking_deployment_cidr = "192.168.0.0/24" - write_operations_per_second = 1000 - read_operations_per_second = 1000 - } - region { - region = "europe-west1" - networking_deployment_cidr = "10.0.1.0/24" - write_operations_per_second = 1000 - read_operations_per_second = 1000 - } - } -} - -resource "rediscloud_active_active_subscription_database" "database" { - subscription_id = rediscloud_active_active_subscription.subscription.id - name = "db" - memory_limit_in_gb = 1 - global_data_persistence = "aof-every-1-second" - global_password = "some-password" -} - -resource "rediscloud_active_active_subscription_regions" "regions" { - subscription_id = rediscloud_active_active_subscription.subscription.id - - region { - region = "us-central1" - networking_deployment_cidr = "192.168.0.0/24" - database { - database_id = rediscloud_active_active_subscription_database.database.db_id - database_name = rediscloud_active_active_subscription_database.database.name - local_write_operations_per_second = 1000 - local_read_operations_per_second = 1000 - } - } - - region { - region = "europe-west1" - networking_deployment_cidr = "10.0.1.0/24" - database { - database_id = rediscloud_active_active_subscription_database.database.db_id - database_name = rediscloud_active_active_subscription_database.database.name - local_write_operations_per_second = 1000 - local_read_operations_per_second = 1000 - } - } -} - -locals { - region_id = one([for r in rediscloud_active_active_subscription_regions.regions.region : r.region_id if r.region == var.gcp_region]) -} - -module "private_service_connect" { - source = "RedisLabs/private-service-connect/rediscloud" - - rediscloud_subscription_type = "active-active" - rediscloud_subscription_id = rediscloud_active_active_subscription.subscription.id - rediscloud_region_id = local.region_id - - gcp_region = var.gcp_region - - endpoints = [ - { - gcp_project_id = var.gcp_project_id - gcp_vpc_name = var.gcp_vpc_name - gcp_vpc_subnetwork_name = var.gcp_subnet_name - gcp_response_policy_name = var.gcp_response_policy_name - } - ] -} - -``` - ## Argument Reference * `subscription_id` - (Required) The ID of the Pro subscription to attach **Modifying this attribute will force creation of a new resource.** diff --git a/docs/resources/rediscloud_private_service_connect_endpoint.md b/docs/resources/rediscloud_private_service_connect_endpoint.md index 240a727f..972a0ac9 100644 --- a/docs/resources/rediscloud_private_service_connect_endpoint.md +++ b/docs/resources/rediscloud_private_service_connect_endpoint.md @@ -132,57 +132,6 @@ resource "rediscloud_private_service_connect_endpoint_accepter" "accepter" { ``` -## Example Usage with Redis Private Service Connect Module - -The example below creates a Private Service Connect Endpoint in a Pro subscription using a Terraform module. -We recommend using the module as it simplifies the Terraform configuration. - -```hcl -data "rediscloud_payment_method" "card" { - card_type = "Visa" -} - -resource "rediscloud_subscription" "subscription" { - name = "subscription-name" - payment_method_id = data.rediscloud_payment_method.card.id - - cloud_provider { - provider = "GCP" - region { - region = var.gcp_region - networking_deployment_cidr = "10.0.1.0/24" - } - } - - creation_plan { - dataset_size_in_gb = 15 - quantity = 1 - replication = true - throughput_measurement_by = "operations-per-second" - throughput_measurement_value = 20000 - } -} - -module "private_service_connect" { - source = "RedisLabs/private-service-connect/rediscloud" - - rediscloud_subscription_type = "pro" - rediscloud_subscription_id = rediscloud_subscription.subscription.id - - gcp_region = var.gcp_region - - endpoints = [ - { - gcp_project_id = var.gcp_project_id - gcp_vpc_name = var.gcp_vpc_name - gcp_vpc_subnetwork_name = var.gcp_subnet_name - gcp_response_policy_name = var.gcp_response_policy_name - } - ] -} - -``` - ## Argument Reference * `subscription_id` - (Required) The ID of the Pro subscription to attach **Modifying this attribute will force creation of a new resource.**