Skip to content

Commit 2b20ef9

Browse files
authored
fix: Broken module due to apphub_service_uri output
The latest addition to the output, `apphub_service_uri`, breaks the module due to the use of `var.region` which isn't a required variable and defaults to `null`. Getting the region from the `google_redis_instance` resource instead will fix this.
1 parent 4358d3e commit 2b20ef9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ output "env_vars" {
7272
output "apphub_service_uri" {
7373
value = {
7474
service_uri = "//redis.googleapis.com/${google_redis_instance.default.id}"
75-
service_id = substr("${var.name}-${md5("${var.region}-${var.project_id}")}", 0, 63)
75+
service_id = substr("${var.name}-${md5("${google_redis_instance.default.region}-${var.project_id}")}", 0, 63)
7676
}
7777
description = "Service URI in CAIS style to be used by Apphub."
7878
}

0 commit comments

Comments
 (0)