Skip to content

Commit e9a7830

Browse files
authored
fix: rename app hub service id (#757)
1 parent 0475973 commit e9a7830

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

modules/mssql/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ output "primary" {
8989
output "apphub_service_uri" {
9090
value = {
9191
service_uri = "//cloudsql.googleapis.com/projects${element(split("/projects", google_sql_database_instance.default.self_link), 1)}"
92-
service_id = substr(format("%s-%s", var.name, md5(var.project_id)), 0, 63)
92+
service_id = substr("${var.name}-${md5("mssql-${var.region}-${var.project_id}")}", 0, 63)
9393
}
9494
description = "Service URI in CAIS style to be used by Apphub."
9595
}

modules/mysql/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ output "env_vars" {
158158
output "apphub_service_uri" {
159159
value = {
160160
service_uri = "//sqladmin.googleapis.com/projects${element(split("/projects", google_sql_database_instance.default.self_link), 1)}"
161-
service_id = substr("${var.name}-${md5("${var.region}-${var.project_id}")}", 0, 63)
161+
service_id = substr("${var.name}-${md5("mysql-${var.region}-${var.project_id}")}", 0, 63)
162162
location = var.region
163163
}
164164
description = "Service URI in CAIS style to be used by Apphub."

modules/postgresql/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ output "env_vars" {
162162
output "apphub_service_uri" {
163163
value = {
164164
service_uri = "//sqladmin.googleapis.com/projects${element(split("/projects", google_sql_database_instance.default.self_link), 1)}"
165-
service_id = substr("${var.name}-${md5("${var.region}-${var.project_id}")}", 0, 63)
165+
service_id = substr("${var.name}-${md5("postgresql-${var.region}-${var.project_id}")}", 0, 63)
166166
location = var.region
167167
}
168168
description = "Service URI in CAIS style to be used by Apphub."

0 commit comments

Comments
 (0)