Skip to content

Commit a777c7a

Browse files
committed
bug: fix fqdn to use internal url
1 parent 638bb51 commit a777c7a

File tree

1 file changed

+4
-4
lines changed
  • grafana_v2/kickstart_v2/terraform/gcp

1 file changed

+4
-4
lines changed

grafana_v2/kickstart_v2/terraform/gcp/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ locals {
4343
vpc_name = var.existing_vpc_name != null ? var.existing_vpc_name : google_compute_network.redispeer_test_vpc[0].name
4444
subnet_id = var.existing_subnet_id != null ? var.existing_subnet_id : google_compute_subnetwork.redispeer_test_subnet[0].id
4545

46-
# Extract FQDN from Redis Cloud database public_endpoint
47-
# Format: redis-18738.c41372.us-central1-mz.gcp.cloud.rlrcp.com:18738
48-
# Extract: c41372.us-central1-mz.gcp.cloud.rlrcp.com
49-
redis_db_primary_fqdn = regex("^[^.]+\\.(.+):\\d+$", data.rediscloud_database.redis_db.public_endpoint)[0]
46+
# Extract FQDN from Redis Cloud database private_endpoint
47+
# Format: redis-18738.internal.c41372.us-central1-mz.gcp.cloud.rlrcp.com:18738
48+
# Extract: internal.c41372.us-central1-mz.gcp.cloud.rlrcp.com
49+
redis_db_primary_fqdn = regex("^[^.]+\\.(.+):\\d+$", data.rediscloud_database.redis_db.private_endpoint)[0]
5050
}
5151

5252
# Conditionally create VPC only if not using existing one

0 commit comments

Comments
 (0)