Skip to content

Commit

Permalink
Change uri and id per PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tjy9206 committed Oct 18, 2024
1 parent 6145abb commit 26ee67f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions modules/mssql/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ output "primary" {

output "apphub_service_uri" {
value = {
service_uri = google_sql_database_instance.default.self_link
service_id = google_sql_database_instance.default.name
service_uri = "//cloudsql.googleapis.com/projects/${var.project_id}/instances/${var.name}"
service_id = substr("${var.name}-${md5("${var.project_id}")}", 0, 63)
}
description = "Service URI in CAIS style to be used by Apphub."
}
4 changes: 2 additions & 2 deletions modules/mysql/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ output "env_vars" {

output "apphub_service_uri" {
value = {
service_uri = google_sql_database_instance.default.self_link
service_id = google_sql_database_instance.default.name
service_uri = "//cloudsql.googleapis.com/projects/${var.project_id}/instances/${var.name}"
service_id = substr("${var.name}-${md5("${var.project_id}")}", 0, 63)
}
description = "Service URI in CAIS style to be used by Apphub."
}
4 changes: 2 additions & 2 deletions modules/postgresql/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ output "env_vars" {

output "apphub_service_uri" {
value = {
service_uri = google_sql_database_instance.default.self_link
service_id = google_sql_database_instance.default.name
service_uri = "//cloudsql.googleapis.com/projects/${var.project_id}/instances/${var.name}"
service_id = substr("${var.name}-${md5("${var.project_id}")}", 0, 63)
}
description = "Service URI in CAIS style to be used by Apphub."
}

0 comments on commit 26ee67f

Please sign in to comment.